{"thread":{"id":"12157","subject":"[PATCH 1/2] help.c: use 'git_config_string' to get 'help_default_format'.","startedAt":"2008-02-17T19:52:50Z","lastAt":"2008-02-17T19:52:50Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"69033","messageId":"20080217205250.a2b4c3c2.chriscool@tuxfamily.org","threadId":"12157","inReplyTo":null,"subject":"[PATCH 1/2] help.c: use 'git_config_string' to get 'help_default_format'.","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2008-02-17T19:52:50Z","receivedAt":"2008-02-17T19:52:50Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Signed-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n help.c |    8 ++------\n 1 files changed, 2 insertions(+), 6 deletions(-)\n\ndiff --git a/help.c b/help.c\nindex 6e28ad9..8143dcd 100644\n--- a/help.c\n+++ b/help.c\n@@ -39,12 +39,8 @@ static void parse_help_format(const char *format)\n \n static int git_help_config(const char *var, const char *value)\n {\n-\tif (!strcmp(var, \"help.format\")) {\n-\t\tif (!value)\n-\t\t\treturn config_error_nonbool(var);\n-\t\thelp_default_format = xstrdup(value);\n-\t\treturn 0;\n-\t}\n+\tif (!strcmp(var, \"help.format\"))\n+\t\treturn git_config_string(&help_default_format, var, value);\n \treturn git_default_config(var, value);\n }\n \n-- \n1.5.4.1.1384.gdeff\n"}]}