Skip to content

Commit

Permalink
help.c: use 'git_config_string' to get 'help_default_format'.
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Feb 18, 2008
1 parent a8f6b20 commit 9886ea4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions help.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9886ea4

Please sign in to comment.