Subject: Re: [PATCH RFC] Add a config verbose option fetch and push

From: Thomas Rast <[email-masked]>
Date: Sat, 22 May 2010 15:34:18 +0200

Ævar Arnfjörð Bjarmason wrote:
> On Sat, May 22, 2010 at 10:44, Thomas Rast <[email-masked]> wrote:
> > Ævar Arnfjörð Bjarmason wrote:
> > That would completely ruin the scriptability of almost all commands.
> > Imagine the user added the following options as default:
> >  add --edit
[...]
> > I'm sure you can find one option that changes the command in something
> > completely different *for every command*.
> 
> Sure. But so would adding this as git-add to your $PATH:
> 
>     #!/bin/sh
>     /usr/lib/git-core/git-add --edit $@

Two points:

* This way is not documented in git-config(1), as the proposed
  interface would have to be; hence, it is not "official".

* More importantly, it doesn't work; for builtins such as git-add, not
  even if you put it under the `git --exec-path` (yes, I've tested
  this).

> Git already has plenty of ways to shoot yourself in the foot.

Can't argue with that.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch