summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c35b0b5)
raw | patch | inline | side by side (parent: c35b0b5)
author | Stephan Beyer <s-beyer@gmx.net> | |
Tue, 8 Apr 2008 08:42:33 +0000 (10:42 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 15 Apr 2008 05:37:47 +0000 (22:37 -0700) |
Signed-off-by: Stephan Beyer <s-beyer@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-apply.c | patch | blob | history |
diff --git a/builtin-apply.c b/builtin-apply.c
index abe73a0f8194e95c2a10a27c2007560e6d57f3d5..c8ca41b68f8febb4856e3d6cc9a0ebef0a0a9973 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
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);
}