Re: Redirect "git" subcommand to itself?
- From
Christian Neukirchen <chneukirchen@gmail.com>
- Date
- May 29, 2015, 08:38 UTC
- Message-ID
- <87zj4n4w3t.fsf@gmail.com>
- In-Reply-To
- <xmqqoal5ii21.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> * You can help yourself with something like this, I suppose: > > [alias] > git = "!sh -c 'exec git \"$@\"' -" > > but I personally feel that it is too ugly to live as part of our > official suggestion, so please do not send a patch to add it as > a built-in alias ;-).
So I thought I was clever, but this didn't work:
% ln -s /usr/bin/git ~/bin/git-git % git git fatal: cannot handle git as a builtin
-- Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org