{"thread":{"id":"2077","subject":"Make git config variable names case-insensitive","startedAt":"2005-10-12T01:09:09Z","lastAt":"2005-10-12T01:09:09Z","messageCount":1,"participants":["Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"9988","messageId":"Pine.LNX.4.64.0510111803540.14597@g5.osdl.org","threadId":"2077","inReplyTo":null,"subject":"Make git config variable names case-insensitive","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-10-12T01:09:09Z","receivedAt":"2005-10-12T01:09:09Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\nThey always were meant to be case-insensitive, but I had missed one \n\"tolower()\", making that not true.\n\nThe actual _values_ aren't case-insensitive, of course, although some uses \nof them may be (ie boolean parsing uses \"strcasecmp()\" to match against \nthe strings \"true\" and \"false\").\n\nSigned-off-by: Linus Torvalds <torvalds@osdl.org>\n---\n\nThis should independent of the other patch - it should apply whether \nyou've taken the [user]name/email config thing or not. But it was \ngenerated on top of that change.\n\n\ndiff --git a/config.c b/config.c\nindex cf80358..9b7c6f2 100644\n--- a/config.c\n+++ b/config.c\n@@ -168,7 +168,7 @@ static int git_parse_file(config_fn_t fn\n \t\t}\n \t\tif (!isalpha(c))\n \t\t\tbreak;\n-\t\tvar[baselen] = c;\n+\t\tvar[baselen] = tolower(c);\n \t\tif (get_value(fn, var, baselen+1) < 0)\n \t\t\tbreak;\n \t}\n"}]}