git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git silently ignores aliases of existing commands
@ 2009-07-18  0:52 Michael G Schwern
  2009-07-18  2:01 ` Sean Estabrooks
  0 siblings, 1 reply; 9+ messages in thread
From: Michael G Schwern @ 2009-07-18  0:52 UTC (permalink / raw)
  To: git

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/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-07-18 16:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-18  0:52 git silently ignores aliases of existing commands Michael G Schwern
2009-07-18  2:01 ` Sean Estabrooks
2009-07-18  7:16   ` Michael G Schwern
2009-07-18  9:30     ` demerphq
2009-07-18 10:46       ` Jeff King
2009-07-18 10:55         ` demerphq
2009-07-18 10:58           ` Jeff King
2009-07-18 11:20             ` demerphq
2009-07-18 16:12               ` A Large Angry SCM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).