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

git silently ignores aliases of existing commands

From
Michael G Schwern <schwern@pobox.com>
Date
Jul 18, 2009, 00:52 UTC
Message-ID
<4A611CE1.3080709@pobox.com>

Everyone says "git tag" does the wrong thing by default and what you really want is an annotated tag with "git tag -a". So I figured I'd fix the default and in my .gitconfig added:

[alias]
    tag = tag -a

and considered it done. Weeks later I discovered git was ignoring that alias and I was still making lightweight tags.

It would be nice if git used the alias *before* the installed command. This lets me fix/change default behaviors without having to come up with a new command. (Another handy example: blame = blame -w) It doesn't do anything useful right now anyway.

Whether or not that changes, if an alias is being ignored git should warn me.
 This informs the user their perfectly sensible action has not done what they
expected.  In addition, should git add a command in the future which conflicts
with the name of an alias they'll know.

PS I couldn't find anything obvious about where to send bug reports / feature requests in the git man page, just "general upbringing" pointing here. It would be helpful if it was a bit more clear. None of "bug", "report" or "issue" pointed at anything relevant.

-- 
184. When operating a military vehicle I may *not* attempt something
     "I saw in a cartoon".
    -- The 213 Things Skippy Is No Longer Allowed To Do In The U.S. Army
           http://skippyslist.com/list/
Next: Sean Estabrooks
Message 1 of 9 in “git silently ignores aliases of existing commands”
  1. Michael G SchwernJul 18, 2009
  2. Sean EstabrooksJul 18, 2009
  3. Michael G SchwernJul 18, 2009
  4. demerphqJul 18, 2009
  5. Jeff KingJul 18, 2009
  6. demerphqJul 18, 2009
  7. Jeff KingJul 18, 2009
  8. demerphqJul 18, 2009
  9. A Large Angry SCMJul 18, 2009

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.