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

Re: git silently ignores aliases of existing commands

From
Ddemerphq <demerphq@gmail.com>
Date
Jul 18, 2009, 09:30 UTC
Message-ID
<9b18b3110907180230p7fb432cdq56bfee794afc669e@mail.gmail.com>
In-Reply-To
<4A6176E6.4060708@pobox.com>
2009/7/18 Michael G Schwern <schwern@pobox.com>:
Show 25 quoted lines
> Sean Estabrooks wrote:
>> On Fri, 17 Jul 2009 17:52:49 -0700
>> Michael G Schwern <schwern@pobox.com> wrote:
>>
>> [...]
>>> 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.
>>
>> This has been discussed a few times on the list already.   Here is one such
>> discussion:
>>
>> http://thread.gmane.org/gmane.comp.version-control.git/112487/focus=112493
>>
>> You'll see that it was decided that Git would not allow commands to be overridden
>> so that you could always be sure what a given command would do when you sit
>> down at any installation.  This is especially important for scripting but can
>> also be a problem for everyday usage.   You'll just have to choose a new command
>> name for the alternate default you want.
>
> I'm in the "more than enough rope" camp myself, so count that as a -1 fwiw.
>
> More importantly, what about the warning telling the user that what they did
> is not allowed and didn't work?

Yeah it seems reasonable that if its going to be ignored it should not be silently ignored.

Especially given that the silentness effectively means there cant be any new git tools added without possible breakage of installed setups.

cheers, Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
Previous: Michael G SchwernNext: Jeff King
Message 4 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.