Re: git silently ignores aliases of existing commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 18, 2009 at 12:55:26PM +0200, demerphq wrote:

> > 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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]