* [PATCH 1/2] help.c: use 'git_config_string' to get 'help_default_format'.
@ 2008-02-17 19:52 Christian Couder
0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2008-02-17 19:52 UTC (permalink / raw)
To: git; +Cc: Junio Hamano, Pascal Obry
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
help.c | 8 ++------
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);
}
--
1.5.4.1.1384.gdeff
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-02-17 19:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-17 19:52 [PATCH 1/2] help.c: use 'git_config_string' to get 'help_default_format' Christian Couder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).