git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josh Triplett <josh@freedesktop.org>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Jeff King <peff@peff.net>, Junio C Hamano <gitster@pobox.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: Start deprecating "git-command" in favor of "git command"
Date: Sun, 01 Jul 2007 14:11:56 -0700	[thread overview]
Message-ID: <4688189C.8040105@freedesktop.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0707011313580.4438@racer.site>

Johannes Schindelin wrote:
> Hi,
> 
> On Sun, 1 Jul 2007, Jeff King wrote:
> 
>> On Sat, Jun 30, 2007 at 12:17:10PM -0700, Junio C Hamano wrote:
>>
>>> So I am somewhat negative on this, unless there is a way for
>>> scripts to say "Even though I say 'git foo', I do mean 'git foo'
>>> not whatever the user has aliased".
>> I had submitted GIT_NOALIAS=1 patches a while back, but IIRC, the
>> consensus was that it was a bit too ugly and fragile in concept.
> 
> I think it is not GIT_NOALIAS that is ugly and fragile in concept. It is 
> the whole notion that you can define default parameters via aliases that 
> is ugly and fragile.
> 
> The possibility to say
> 
> 	git config alias.log '!rm -rf /home/peff'
> 
> on somebody _else's_ machine makes me go shudder.
> 
> And there's another thing. On some machines, rm is aliased to 'rm -i'. 
> That's good, right? NO! It _forces_ me to either look at the aliases on 
> that particular box, or alternatively (which is what I actually do), 
> specify _exactly_ what I want (I never do "rm", I always do "rm -i" or "rm 
> -f", or "git rm"). That's because the default behaviour is 
> _different_ on _different_ boxes. Repeat after me: consistency is good, 
> inconsistency is bad.

And to give a git-specific example, I suspect many people would see this
feature and immediately do "git config alias.commit "commit -a".

- Josh Triplett

  reply	other threads:[~2007-07-01 21:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-30 18:49 Start deprecating "git-command" in favor of "git command" Linus Torvalds
2007-06-30 19:17 ` Junio C Hamano
2007-06-30 19:43   ` Yann Dirson
2007-07-01  2:25     ` Junio C Hamano
2007-07-01  3:01       ` Linus Torvalds
2007-07-01  3:32         ` Junio C Hamano
2007-07-01 12:12           ` Johannes Schindelin
2007-07-01 18:16             ` Junio C Hamano
2007-07-03  2:56           ` Nicolas Pitre
2007-07-03  3:50             ` Junio C Hamano
2007-06-30 19:43   ` Linus Torvalds
2007-06-30 20:08     ` Junio C Hamano
2007-06-30 20:22   ` Junio C Hamano
2007-07-01  8:22   ` Jeff King
2007-07-01 13:48     ` Johannes Schindelin
2007-07-01 21:11       ` Josh Triplett [this message]
2007-06-30 20:34 ` walt
2007-06-30 21:37   ` Johannes Schindelin
2007-06-30 22:40     ` walt
2007-07-01 13:47     ` Yann Dirson
  -- strict thread matches above, loose matches on Subject: below --
2007-07-01  0:45 linux
2007-07-01  1:48 ` eschvoca
2007-07-01  3:00   ` Theodore Tso

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=4688189C.8040105@freedesktop.org \
    --to=josh@freedesktop.org \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=peff@peff.net \
    --cc=torvalds@linux-foundation.org \
    /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).