зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
0c4cd7f4a7
Коммит
186458b11b
|
@ -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 @@ 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;
|
||||
|
||||
|
|
|
@ -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) &&
|
||||
|
|
Загрузка…
Ссылка в новой задаче