@matheusbsbs / matheus-bagliano / commits / 624314fda7
Fork 0

boolean: accept yes and no as well

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jul 3, 2006 at 18:48 UTC 624314fda7e7bd1107db7de4e877ee6285d7d6eb
1 file changed +2 -2
config.c
+2 -2
@@ -244,9 +244,9 @@ int git_config_bool(const char *name, const char *value)
244 return 1;
245 if (!*value)
246 return 0;
247 - if (!strcasecmp(value, "true"))
247 + if (!strcasecmp(value, "true") || !strcasecmp(value, "yes"))
248 return 1;
249 - if (!strcasecmp(value, "false"))
249 + if (!strcasecmp(value, "false") || !strcasecmp(value, "no"))
250 return 0;
251 return git_config_int(name, value) != 0;
252 }