From: demerphq <demerphq@gmail.com>
To: Jeff King <peff@peff.net>
Cc: 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:55:26 +0200 [thread overview]
Message-ID: <9b18b3110907180355s5bf08f8did180caa0c55b3389@mail.gmail.com> (raw)
In-Reply-To: <20090718104631.GA27307@coredump.intra.peff.net>
2009/7/18 Jeff King <peff@peff.net>:
> On Sat, Jul 18, 2009 at 11:30:25AM +0200, demerphq wrote:
>
>> Yeah it seems reasonable that if its going to be ignored it should not
>> be silently ignored.
>
> I agree that there should be a warning. However, it's hard to do with
> the code structured as it is now; we don't know that a command exists
> as an external command until we try to exec it. And if it succeeds, we
> don't get to execute any more code.
>
> It's certainly possible, but sadly it is more surgery than just
>
> if (alias_lookup(cmd))
> warn("you also have an alias defined");
>
>> Especially given that the silentness effectively means there cant be
>> any new git tools added without possible breakage of installed setups.
>
> 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.
cheers,
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
next prev parent reply other threads:[~2009-07-18 10:55 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 [this message]
2009-07-18 10:58 ` Jeff King
2009-07-18 11:20 ` demerphq
2009-07-18 16:12 ` A Large Angry SCM
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=9b18b3110907180355s5bf08f8did180caa0c55b3389@mail.gmail.com \
--to=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).