提交 186458b1 编写于 作者: S Stephan Beyer 提交者: Junio C Hamano

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

Signed-off-by: NStephan Beyer <s-beyer@gmx.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 0c4cd7f4
......@@ -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);
......
......@@ -145,7 +145,7 @@ static int get_value(const char* key_, const char* regex_)
return ret;
}
char *normalize_value(const char *key, const char *value)
static char *normalize_value(const char *key, const char *value)
{
char *normalized;
......
......@@ -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;
......
......@@ -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) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册