From: Stephan Beyer Date: Tue, 8 Apr 2008 08:42:33 +0000 (+0200) Subject: builtin-apply.c: use git_config_string() to get apply_default_whitespace X-Git-Tag: v1.5.6-rc0~146 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e4c6aa1ac6e63d2fcee1825e32afbf4cb97206f;p=git.git builtin-apply.c: use git_config_string() to get apply_default_whitespace Signed-off-by: Stephan Beyer Signed-off-by: Junio C Hamano --- diff --git a/builtin-apply.c b/builtin-apply.c index abe73a0f8..c8ca41b68 100644 --- a/builtin-apply.c +++ b/builtin-apply.c @@ -2981,12 +2981,8 @@ static int apply_patch(int fd, const char *filename, int inaccurate_eof) static int git_apply_config(const char *var, const char *value) { - if (!strcmp(var, "apply.whitespace")) { - if (!value) - return config_error_nonbool(var); - apply_default_whitespace = xstrdup(value); - return 0; - } + if (!strcmp(var, "apply.whitespace")) + return git_config_string(&apply_default_whitespace, var, value); return git_default_config(var, value); }