Style: place opening brace of a function definition at column 1
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Junio C Hamano committed
Nov 8, 2007 at 15:35 UTC
f3fa1838024dc0f3741d2f9654af92f6a1bb34bd
8 files changed
+20
-10
bundle.c
+2
-1
@@ -23,7 +23,8 @@ static void add_to_ref_list(const unsigned char *sha1, const char *name,
23
}
24
25
/* 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
+{
28
char buffer[1024];
29
int fd;
30
long fpos;
daemon.c
+4
-2
@@ -406,7 +406,8 @@ static struct daemon_service daemon_service[] = {
406
{ "receive-pack", "receivepack", receive_pack, 0, 1 },
407
};
408
409
-static void enable_service(const char *name, int ena) {
409
+static void enable_service(const char *name, int ena)
410
+{
411
int i;
412
for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
413
if (!strcmp(daemon_service[i].name, name)) {
@@ -417,7 +418,8 @@ static void enable_service(const char *name, int ena) {
418
die("No such service %s", name);
419
}
420
420
-static void make_service_overridable(const char *name, int ena) {
421
+static void make_service_overridable(const char *name, int ena)
422
+{
423
int i;
424
for (i = 0; i < ARRAY_SIZE(daemon_service); i++) {
425
if (!strcmp(daemon_service[i].name, name)) {
dir.c
+2
-1
@@ -298,7 +298,8 @@ int excluded(struct dir_struct *dir, const char *pathname)
298
return 0;
299
}
300
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
+{
303
struct dir_entry *ent;
304
305
ent = xmalloc(sizeof(*ent) + len + 1);
help.c
+2
-1
@@ -79,7 +79,8 @@ static void uniq(struct cmdnames *cmds)
79
cmds->cnt = j;
80
}
81
82
-static void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes) {
82
+static void exclude_cmds(struct cmdnames *cmds, struct cmdnames *excludes)
83
+{
84
int ci, cj, ei;
85
int cmp;
86
quote.c
+2
-1
@@ -131,7 +131,8 @@ static signed char const sq_lookup[256] = {
131
/* 0x80 */ /* set to 0 */
132
};
133
134
-static inline int sq_must_quote(char c) {
134
+static inline int sq_must_quote(char c)
135
+{
136
return sq_lookup[(unsigned char)c] + quote_path_fully > 0;
137
}
138
setup.c
+2
-1
@@ -206,7 +206,8 @@ static const char *set_work_tree(const char *dir)
206
return NULL;
207
}
208
209
-void setup_work_tree(void) {
209
+void setup_work_tree(void)
210
+{
211
const char *work_tree = get_git_work_tree();
212
const char *git_dir = get_git_dir();
213
if (!is_absolute_path(git_dir))
transport.c
+4
-2
@@ -380,7 +380,8 @@ static int disconnect_walker(struct transport *transport)
380
}
381
382
#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
+{
385
const char **argv;
386
int argc;
387
int err;
@@ -646,7 +647,8 @@ static int fetch_refs_via_pack(struct transport *transport,
647
return 0;
648
}
649
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
+{
652
struct git_transport_data *data = transport->data;
653
const char **argv;
654
char *rem;
utf8.c
+2
-1
@@ -11,7 +11,8 @@ struct interval {
11
};
12
13
/* 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
+{
16
int min = 0;
17
int mid;
18