From: Linus Torvalds Date: Wed, 12 Oct 2005 01:47:34 +0000 (-0700) Subject: Make git config variable names case-insensitive X-Git-Tag: v0.99.9~145 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=128af9d1ef6c26b94d14c4dd0028c5dda8d6dd82;p=git.git Make git config variable names case-insensitive They always were meant to be case-insensitive, but I had missed one "tolower()", making that not true. The actual _values_ aren't case-insensitive, of course, although some uses of them may be (ie boolean parsing uses "strcasecmp()" to match against the strings "true" and "false"). Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- diff --git a/config.c b/config.c index cf803580c..9b7c6f294 100644 --- a/config.c +++ b/config.c @@ -168,7 +168,7 @@ static int git_parse_file(config_fn_t fn) } if (!isalpha(c)) break; - var[baselen] = c; + var[baselen] = tolower(c); if (get_value(fn, var, baselen+1) < 0) break; }