@matheusbsbs / matheus-bagliano / commits / 186458b11b
Fork 0

Make non-static functions, that may be static, static

Signed-off-by: Stephan Beyer <s-beyer@gmx.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Stephan Beyer committed Jul 24, 2008 at 01:09 UTC 186458b11b090835fa793bcdbf6b5552b053276c
4 files changed +4 -4
builtin-commit.c
+1 -1
@@ -876,7 +876,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
876 }
877 }
878
879 -int git_commit_config(const char *k, const char *v, void *cb)
879 +static int git_commit_config(const char *k, const char *v, void *cb)
880 {
881 if (!strcmp(k, "commit.template"))
882 return git_config_string(&template_file, k, v);
builtin-config.c
+1 -1
@@ -145,7 +145,7 @@ free_strings:
145 return ret;
146 }
147
148 -char *normalize_value(const char *key, const char *value)
148 +static char *normalize_value(const char *key, const char *value)
149 {
150 char *normalized;
151
builtin-for-each-ref.c
+1 -1
@@ -809,7 +809,7 @@ static struct ref_sort *default_sort(void)
809 return sort;
810 }
811
812 -int opt_parse_sort(const struct option *opt, const char *arg, int unset)
812 +static int opt_parse_sort(const struct option *opt, const char *arg, int unset)
813 {
814 struct ref_sort **sort_tail = opt->value;
815 struct ref_sort *s;
builtin-merge.c
+1 -1
@@ -431,7 +431,7 @@ static void merge_name(const char *remote, struct strbuf *msg)
431 sha1_to_hex(remote_head->sha1), remote);
432 }
433
434 -int git_merge_config(const char *k, const char *v, void *cb)
434 +static int git_merge_config(const char *k, const char *v, void *cb)
435 {
436 if (branch && !prefixcmp(k, "branch.") &&
437 !prefixcmp(k + 7, branch) &&