diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-09 12:40:39 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-11 11:00:45 -0700 |
commit | 8f8c6fafd92fd547547bd7735e2d121a20997703 (patch) | |
tree | 42659ac556b9b826d48a165f2f6260d6e2f36e6b /config.c | |
parent | e37347bba651f051998f23a3701b555f1a194557 (diff) | |
download | git-8f8c6fafd92fd547547bd7735e2d121a20997703.tar.gz |
Allow users to un-configure rename detection
On Thu, 9 Apr 2009, Linus Torvalds wrote:
>
> [diff]
> renames = no
Btw, while doing this, I also though that "renames = on/off" made more
sense, but while we allow yes/no and true/false for booleans, we don't
allow on/off.
Should we? Maybe. Here's a stupid patch.
Linus
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -331,9 +331,9 @@ int git_config_bool_or_int(const char *name, const char *value, int *is_bool) return 1; if (!*value) return 0; - if (!strcasecmp(value, "true") || !strcasecmp(value, "yes")) + if (!strcasecmp(value, "true") || !strcasecmp(value, "yes") || !strcasecmp(value, "on")) return 1; - if (!strcasecmp(value, "false") || !strcasecmp(value, "no")) + if (!strcasecmp(value, "false") || !strcasecmp(value, "no") || !strcasecmp(value, "off")) return 0; *is_bool = 0; return git_config_int(name, value); |