git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[ITCH] Mixed-case aliases

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 22, 2013, 09:21 UTC
Message-ID
<CALkWK0m889R_3yHw=mbptw-vHc6jf49Az+zd+3rEoW_iouH1HQ@mail.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
Message 1 of 1 in “[ITCH] Mixed-case aliases”
  1. Ramkumar RamachandraApr 22, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.