Skip to content

Commit 8f8c6fa

Browse files
torvaldsgitster
authored andcommitted
Allow users to un-configure rename detection
On Thu, 9 Apr 2009, Linus Torvalds wrote: > > [diff] > renames = no Btw, while doing this, I also though that "renames = on/off" made more sense, but while we allow yes/no and true/false for booleans, we don't allow on/off. Should we? Maybe. Here's a stupid patch. Linus Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e37347b commit 8f8c6fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ int git_config_bool_or_int(const char *name, const char *value, int *is_bool)
331331
return 1;
332332
if (!*value)
333333
return 0;
334-
if (!strcasecmp(value, "true") || !strcasecmp(value, "yes"))
334+
if (!strcasecmp(value, "true") || !strcasecmp(value, "yes") || !strcasecmp(value, "on"))
335335
return 1;
336-
if (!strcasecmp(value, "false") || !strcasecmp(value, "no"))
336+
if (!strcasecmp(value, "false") || !strcasecmp(value, "no") || !strcasecmp(value, "off"))
337337
return 0;
338338
*is_bool = 0;
339339
return git_config_int(name, value);

0 commit comments

Comments
 (0)