summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2008-02-17 19:52:50 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-18 04:54:01 (GMT)
commit9886ea417b7da9722c95630b5980ac174e04c71c (patch)
treebf1bcf9a1adfdf46827f2e322cce4ad4870bd828 /help.c
parenta8f6b201aadcadeb9bfe05a66de32878bff800f7 (diff)
downloadgit-9886ea417b7da9722c95630b5980ac174e04c71c.zip
git-9886ea417b7da9722c95630b5980ac174e04c71c.tar.gz
git-9886ea417b7da9722c95630b5980ac174e04c71c.tar.bz2
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>
Diffstat (limited to 'help.c')
-rw-r--r--help.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/help.c b/help.c
index 6e28ad9..8143dcd 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);
}