summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a8f6b20)
raw | patch | inline | side by side (parent: a8f6b20)
author | Christian Couder <chriscool@tuxfamily.org> | |
Sun, 17 Feb 2008 19:52:50 +0000 (20:52 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 18 Feb 2008 04:54:01 +0000 (20:54 -0800) |
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
help.c | patch | blob | history |
index 6e28ad9e7129360aa2b3206a606e81134baec85c..8143dcdd38218ef03c47535c7c2e761cf1a868ce 100644 (file)
--- a/help.c
+++ b/help.c
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);
}