From: A Large Angry SCM <gitzilla@gmail.com>
To: demerphq <demerphq@gmail.com>
Cc: Jeff King <peff@peff.net>, Michael G Schwern <schwern@pobox.com>,
Sean Estabrooks <seanlkml@sympatico.ca>,
git@vger.kernel.org
Subject: Re: git silently ignores aliases of existing commands
Date: Sat, 18 Jul 2009 12:12:22 -0400 [thread overview]
Message-ID: <4A61F466.3080105@gmail.com> (raw)
In-Reply-To: <9b18b3110907180420n67ec7fa1q4a0df2047f37435e@mail.gmail.com>
demerphq wrote:
> 2009/7/18 Jeff King <peff@peff.net>:
>> 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.
>
> I think we are more or less in agreement, except maybe that i think
> the situation would be marginally better if git detected this.
>
> :-)
>
> Seems an awkward position actually. Maybe a switch like
> --ignore-command-aliases which would be used by all internal commands
> when they expect to find another internal command would resolve it.
> Then aliases of internal commands to control default switches could
> actually be allowed to work, and there would not be the future
> compatibility trap that there seems to be now.
The real solution is to (re)move the aliases from the git name-space.
prev parent reply other threads:[~2009-07-18 16:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A61F466.3080105@gmail.com \
--to=gitzilla@gmail.com \
--cc=demerphq@gmail.com \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=schwern@pobox.com \
--cc=seanlkml@sympatico.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).