Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-04-19 01:46:22 +0400
committerJunio C Hamano <gitster@pobox.com>2009-04-19 01:46:22 +0400
commit4f760b74cfaa23222901739cdc62951cc7b8c5b6 (patch)
tree1452411184a945174ddddf05156d37c880bf1529 /config.c
parent9824a388e53ba0951e38f246038fa0ef6fda3397 (diff)
parent0cbcf7ad71559245b59b90a324011fcf0657af8c (diff)
Merge branch 'lt/bool-on-off'
* lt/bool-on-off: Documentation: boolean value may be given by on/off Allow users to un-configure rename detection
Diffstat (limited to 'config.c')
-rw-r--r--config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/config.c b/config.c
index 2d70398b16..8c1ae598a9 100644
--- a/config.c
+++ b/config.c
@@ -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);