boolean: accept yes and no as well
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
3f492ba1fc
commit
624314fda7
4
config.c
4
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user