Commit 9886ea41 authored by Christian Couder's avatar Christian Couder Committed by Junio C Hamano

help.c: use 'git_config_string' to get 'help_default_format'.

Signed-off-by: Christian Couder's avatarChristian Couder <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent a8f6b201
......@@ -39,12 +39,8 @@ static void parse_help_format(const char *format)
static int git_help_config(const char *var, const char *value)
if (!strcmp(var, "help.format")) {
if (!value)
return config_error_nonbool(var);
help_default_format = xstrdup(value);
return 0;
if (!strcmp(var, "help.format"))
return git_config_string(&help_default_format, var, value);
return git_default_config(var, value);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment