{"thread":{"id":"33566","subject":"[ITCH] Mixed-case aliases","startedAt":"2013-04-22T09:21:29Z","lastAt":"2013-04-22T09:21:29Z","messageCount":1,"participants":["Ramkumar Ramachandra"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"215063","messageId":"CALkWK0m889R_3yHw=mbptw-vHc6jf49Az+zd+3rEoW_iouH1HQ@mail.gmail.com","threadId":"33566","inReplyTo":null,"subject":"[ITCH] Mixed-case aliases","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2013-04-22T09:21:29Z","receivedAt":"2013-04-22T09:21:29Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"Hi,\n\nMy .gitconfig has aliases like the following:\n\n[alias]\n\tbD = branch -D\n\tbM = branch -M\n\nUnfortunately, since the current config-parsing code unconditionally\nruns tolower() on all keys, these aliases don't work.  My proposal is\nto modify alias.c::alias_lookup() to call a\ngit_config_DONTMANGLECASE() variant, and modify the various functions\nin config.c appropriately.\n\nOn a related note, it might be useful to warn the user that we are an\nignoring alias.<builtin-name> key when executing the corresponding\nbuiltin.  It's not really my itch, but I suspect a lot of beginners\nget tripped up by this.\n\nWhat do you think?\n\nRam\n"}]}