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

Re: git silently ignores aliases of existing commands

From
Jeff King <peff@peff.net>
Date
Jul 18, 2009, 10:58 UTC
Message-ID
<20090718105855.GA29567@coredump.intra.peff.net>
In-Reply-To
<9b18b3110907180355s5bf08f8did180caa0c55b3389@mail.gmail.com>
On Sat, Jul 18, 2009 at 12:55:26PM +0200, demerphq wrote:
Show 7 quoted lines
> > The silentness makes it harder to diagnose problems, but even with a
> > warning, we can break things by creating new commands. If you have an
> > alias "foo" and we ship "git-foo" in a newer version of git, your alias
> > will just stop working.
> 
> That was my point. At least if there were warnings about this the risk
> would be mitigated.

I don't see how it's mitigated. You don't get any warning until _after_ things are broken. So yes, it may help you diagnose the breakage, but presumably the fact that the command is doing something completely different would also alert you to the breakage.

The real problem comes from scripted use, where you don't necessarily have a user reading warnings on stderr, or notice that some totally bogus code is being run (especially if said code happens not to produce a non-zero exit code).

But perhaps that's what you meant, and I'm just nitpicking your language.

-Peff
Previous: demerphqNext: demerphq
Message 7 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.