From: Junio C Hamano Date: Tue, 4 Jul 2006 01:48:23 +0000 (-0700) Subject: boolean: accept yes and no as well X-Git-Tag: v1.4.2-rc1~93 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=624314fda7e7bd1107db7de4e877ee6285d7d6eb;p=git.git boolean: accept yes and no as well Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index b23f4bf48..8445f7dca 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; }