@matheusbsbs / matheus-bagliano / commits / 9886ea417b
Fork 0

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>

Christian Couder committed Feb 17, 2008 at 20:52 UTC 9886ea417b7da9722c95630b5980ac174e04c71c
1 file changed +2 -6
help.c
+2 -6
@@ -39,12 +39,8 @@ static void parse_help_format(const char *format)
39
40 static int git_help_config(const char *var, const char *value)
41 {
42 - if (!strcmp(var, "help.format")) {
43 - if (!value)
44 - return config_error_nonbool(var);
45 - help_default_format = xstrdup(value);
46 - return 0;
47 - }
42 + if (!strcmp(var, "help.format"))
43 + return git_config_string(&help_default_format, var, value);
44 return git_default_config(var, value);
45 }
46