projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f492ba
)
boolean: accept yes and no as well
author
Junio C Hamano
<junkio@cox.net>
Tue, 4 Jul 2006 01:48:23 +0000
(18:48 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 4 Jul 2006 01:48:23 +0000
(18:48 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c
patch
|
blob
|
history
diff --git
a/config.c
b/config.c
index b23f4bf487f5f4350f46e13c590db6f7ea1f5917..8445f7dcab3bdf96326b8d6a3e1b8c8a8161cb23 100644
(file)
--- 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;
}