Skip to content

Commit f3fa183

Browse files
committed
Style: place opening brace of a function definition at column 1
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5c35505 commit f3fa183

File tree

8 files changed

+20
-10
lines changed

8 files changed

+20
-10
lines changed

bundle.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ static void add_to_ref_list(const unsigned char *sha1, const char *name,
2323
}
2424

2525
/* returns an fd */
26-
int read_bundle_header(const char *path, struct bundle_header *header) {
26+
int read_bundle_header(const char *path, struct bundle_header *header)
27+
{
2728
char buffer[1024];
2829
int fd;
2930
long fpos;

daemon.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@ static struct daemon_service daemon_service[] = {
406406
{ "receive-pack", "receivepack", receive_pack, 0, 1 },
407407
};
408408

409-
static void enable_service(const char *name, int ena) {
409+
static void enable_service(const char *name, int ena)
410+
{
410411
int i;
411412
for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
412413
if (!strcmp(daemon_service[i].name, name)) {
@@ -417,7 +418,8 @@ static void enable_service(const char *name, int ena) {
417418
die("No such service %s", name);
418419
}
419420

420-
static void make_service_overridable(const char *name, int ena) {
421+
static void make_service_overridable(const char *name, int ena)
422+
{
421423
int i;
422424
for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
423425
if (!strcmp(daemon_service[i].name, name)) {

dir.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ int excluded(struct dir_struct *dir, const char *pathname)
298298
return 0;
299299
}
300300

301-
static struct dir_entry *dir_entry_new(const char *pathname, int len) {
301+
static struct dir_entry *dir_entry_new(const char *pathname, int len)
302+
{
302303
struct dir_entry *ent;
303304

304305
ent = xmalloc(sizeof(*ent) + len + 1);

help.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ static void uniq(struct cmdnames *cmds)
7979
cmds->cnt = j;
8080
}
8181

82-
static void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) {
82+
static void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
83+
{
8384
int ci, cj, ei;
8485
int cmp;
8586

quote.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ static signed char const sq_lookup[256] = {
131131
/* 0x80 */ /* set to 0 */
132132
};
133133

134-
static inline int sq_must_quote(char c) {
134+
static inline int sq_must_quote(char c)
135+
{
135136
return sq_lookup[(unsigned char)c] + quote_path_fully > 0;
136137
}
137138

setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ static const char *set_work_tree(const char *dir)
206206
return NULL;
207207
}
208208

209-
void setup_work_tree(void) {
209+
void setup_work_tree(void)
210+
{
210211
const char *work_tree = get_git_work_tree();
211212
const char *git_dir = get_git_dir();
212213
if (!is_absolute_path(git_dir))

transport.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ static int disconnect_walker(struct transport *transport)
380380
}
381381

382382
#ifndef NO_CURL
383-
static int curl_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags) {
383+
static int curl_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags)
384+
{
384385
const char **argv;
385386
int argc;
386387
int err;
@@ -646,7 +647,8 @@ static int fetch_refs_via_pack(struct transport *transport,
646647
return 0;
647648
}
648649

649-
static int git_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags) {
650+
static int git_transport_push(struct transport *transport, int refspec_nr, const char **refspec, int flags)
651+
{
650652
struct git_transport_data *data = transport->data;
651653
const char **argv;
652654
char *rem;

utf8.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ struct interval {
1111
};
1212

1313
/* auxiliary function for binary search in interval table */
14-
static int bisearch(ucs_char_t ucs, const struct interval *table, int max) {
14+
static int bisearch(ucs_char_t ucs, const struct interval *table, int max)
15+
{
1516
int min = 0;
1617
int mid;
1718

0 commit comments

Comments
 (0)