# [ITCH] Mixed-case aliases

1 messages from 2013-04-22 to 2013-04-22. Participants: Ramkumar Ramachandra.
Thread: https://gitlist.dev/t/33566

## Ramkumar Ramachandra, 2013-04-22 09:21

Subject: [ITCH] Mixed-case aliases
Message-ID: <CALkWK0m889R_3yHw=mbptw-vHc6jf49Az+zd+3rEoW_iouH1HQ@mail.gmail.com>
URL: https://gitlist.dev/e/CALkWK0m889R_3yHw%3Dmbptw-vHc6jf49Az%2Bzd%2B3rEoW_iouH1HQ%40mail.gmail.com

```
Hi,

My .gitconfig has aliases like the following:

[alias]
	bD = branch -D
	bM = branch -M

Unfortunately, since the current config-parsing code unconditionally
runs tolower() on all keys, these aliases don't work.  My proposal is
to modify alias.c::alias_lookup() to call a
git_config_DONTMANGLECASE() variant, and modify the various functions
in config.c appropriately.

On a related note, it might be useful to warn the user that we are an
ignoring alias.<builtin-name> key when executing the corresponding
builtin.  It's not really my itch, but I suspect a lot of beginners
get tripped up by this.

What do you think?

Ram

```
