help.c: use 'git_config_string' to get 'help_default_format'.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
a8f6b201aa
commit
9886ea417b
8
help.c
8
help.c
@ -39,12 +39,8 @@ static void parse_help_format(const char *format)
|
|||||||
|
|
||||||
static int git_help_config(const char *var, const char *value)
|
static int git_help_config(const char *var, const char *value)
|
||||||
{
|
{
|
||||||
if (!strcmp(var, "help.format")) {
|
if (!strcmp(var, "help.format"))
|
||||||
if (!value)
|
return git_config_string(&help_default_format, var, value);
|
||||||
return config_error_nonbool(var);
|
|
||||||
help_default_format = xstrdup(value);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
return git_default_config(var, value);
|
return git_default_config(var, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user