]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Make non-static functions, that may be static, static
authorStephan Beyer <s-beyer@gmx.net>
Wed, 23 Jul 2008 23:09:35 +0000 (01:09 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Jul 2008 01:38:14 +0000 (18:38 -0700)
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c
builtin-config.c
builtin-for-each-ref.c
builtin-merge.c

index 7434797d1b850b25d13aab8d7aeaf85d02109a61..6a9dc0e30fc23d79df099fbd05b69bacf54238be 100644 (file)
@@ -876,7 +876,7 @@ static void print_summary(const char *prefix, const unsigned char *sha1)
        }
 }
 
-int git_commit_config(const char *k, const char *v, void *cb)
+static int git_commit_config(const char *k, const char *v, void *cb)
 {
        if (!strcmp(k, "commit.template"))
                return git_config_string(&template_file, k, v);
index 0cf191a11294f902d25aeda29e7290f3ab78b482..91fdc4985d8e64fae12209174dd4aa2d887793e5 100644 (file)
@@ -145,7 +145,7 @@ free_strings:
        return ret;
 }
 
-char *normalize_value(const char *key, const char *value)
+static char *normalize_value(const char *key, const char *value)
 {
        char *normalized;
 
index 76282ad79193e2a5f0ec2ba8e5027025f8a7bee1..445039e19c75e4c9321f7ee64289ef8201a25c14 100644 (file)
@@ -809,7 +809,7 @@ static struct ref_sort *default_sort(void)
        return sort;
 }
 
-int opt_parse_sort(const struct option *opt, const char *arg, int unset)
+static int opt_parse_sort(const struct option *opt, const char *arg, int unset)
 {
        struct ref_sort **sort_tail = opt->value;
        struct ref_sort *s;
index 8825dcf8d9c4cce3fa0321a808877237d05d4f5a..e78fa18b3a68e2b7f041beab0524ce1a2b7e9365 100644 (file)
@@ -431,7 +431,7 @@ static void merge_name(const char *remote, struct strbuf *msg)
                sha1_to_hex(remote_head->sha1), remote);
 }
 
-int git_merge_config(const char *k, const char *v, void *cb)
+static int git_merge_config(const char *k, const char *v, void *cb)
 {
        if (branch && !prefixcmp(k, "branch.") &&
                !prefixcmp(k + 7, branch) &&