summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e37347b)
raw | patch | inline | side by side (parent: e37347b)
author | Linus Torvalds <torvalds@linux-foundation.org> | |
Thu, 9 Apr 2009 19:40:39 +0000 (12:40 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 11 Apr 2009 18:00:45 +0000 (11:00 -0700) |
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>
>
> [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>
config.c | patch | blob | history |
diff --git a/config.c b/config.c
index b76fe4c6dcc966f8c7c15da44d15f7cf45740f5b..e7d91f5847f09a302e962843041aeea1e57c3723 100644 (file)
--- a/config.c
+++ b/config.c
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);