From: Christian Couder Date: Sun, 17 Feb 2008 19:52:50 +0000 (+0100) Subject: help.c: use 'git_config_string' to get 'help_default_format'. X-Git-Tag: v1.5.5-rc0~197 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9886ea417b7da9722c95630b5980ac174e04c71c;p=git.git help.c: use 'git_config_string' to get 'help_default_format'. Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- diff --git a/help.c b/help.c index 6e28ad9e7..8143dcdd3 100644 --- a/help.c +++ b/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) { - 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); }