git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: demerphq <demerphq@gmail.com>
To: Michael G Schwern <schwern@pobox.com>
Cc: Sean Estabrooks <seanlkml@sympatico.ca>, git@vger.kernel.org
Subject: Re: git silently ignores aliases of existing commands
Date: Sat, 18 Jul 2009 11:30:25 +0200	[thread overview]
Message-ID: <9b18b3110907180230p7fb432cdq56bfee794afc669e@mail.gmail.com> (raw)
In-Reply-To: <4A6176E6.4060708@pobox.com>

2009/7/18 Michael G Schwern <schwern@pobox.com>:
> 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/"

  reply	other threads:[~2009-07-18  9:38 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 [this message]
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

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=9b18b3110907180230p7fb432cdq56bfee794afc669e@mail.gmail.com \
    --to=demerphq@gmail.com \
    --cc=git@vger.kernel.org \
    --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).