summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-07-04 01:48:23 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-04 01:48:23 (GMT)
commit624314fda7e7bd1107db7de4e877ee6285d7d6eb (patch)
treece487eba0362f2c31e9f4197cb1933edbb3a5d5b /config.c
parent3f492ba1fc4e63073378cc097154bed1ed2563c8 (diff)
downloadgit-624314fda7e7bd1107db7de4e877ee6285d7d6eb.zip
git-624314fda7e7bd1107db7de4e877ee6285d7d6eb.tar.gz
git-624314fda7e7bd1107db7de4e877ee6285d7d6eb.tar.bz2
boolean: accept yes and no as well
Signed-off-by: Junio C Hamano <junkio@cox.net>
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 b23f4bf..8445f7d 100644
--- a/config.c
+++ b/config.c
@@ -244,9 +244,9 @@ int git_config_bool(const char *name, const char *value)
return 1;
if (!*value)
return 0;
- if (!strcasecmp(value, "true"))
+ if (!strcasecmp(value, "true") || !strcasecmp(value, "yes"))
return 1;
- if (!strcasecmp(value, "false"))
+ if (!strcasecmp(value, "false") || !strcasecmp(value, "no"))
return 0;
return git_config_int(name, value) != 0;
}