Re: Redirect git subcommand to itself?

2015-05-29 Thread Christian Neukirchen
Junio C Hamano gits...@pobox.com writes: * 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

Re: Redirect git subcommand to itself?

2015-05-29 Thread Aaron Schrab
At 10:38 +0200 29 May 2015, Christian Neukirchen chneukirc...@gmail.com wrote: Junio C Hamano gits...@pobox.com writes: * 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

Re: Redirect git subcommand to itself?

2015-05-29 Thread Christian Neukirchen
Junio C Hamano gits...@pobox.com writes: Christian Neukirchen chneukirc...@gmail.com writes: Junio C Hamano gits...@pobox.com writes: * 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

Re: Redirect git subcommand to itself?

2015-05-29 Thread Stefan Beller
Thanks a lot for the discussion! So I'll just fix it locally for me and we keep the state as is. -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Redirect git subcommand to itself?

2015-05-29 Thread Junio C Hamano
Christian Neukirchen chneukirc...@gmail.com writes: I was just toying around, and it would have been cute. Or didn't the alias work? It does. This seems to work just as well, and is easier: Thanks; I was wondering if I gave something that was not portable or something. git = !git

Re: Redirect git subcommand to itself?

2015-05-29 Thread Junio C Hamano
Christian Neukirchen chneukirc...@gmail.com writes: Junio C Hamano gits...@pobox.com writes: * 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

Re: Redirect git subcommand to itself?

2015-05-28 Thread Konstantin Khomoutov
On Wed, 27 May 2015 17:28:34 -0700 Stefan Beller sbel...@google.com wrote: so I just run into this problem again (which happens to me maybe twice a week): I want to do a git operations, so I type git into my shell, [...] then I copy the whole operation git revert --abort in this case and

Re: Redirect git subcommand to itself?

2015-05-28 Thread Matthieu Moy
Stefan Beller sbel...@google.com writes: so I just run into this problem again (which happens to me maybe twice a week): I want to do a git operations, so I type git into my shell, and then [...] I copy the whole operation git revert --abort in this case and paste it to the shell On my

Redirect git subcommand to itself?

2015-05-27 Thread Stefan Beller
Hi, so I just run into this problem again (which happens to me maybe twice a week): I want to do a git operations, so I type git into my shell, and then I look around what exactly I want to do and usually I find it in the help text of a previous command such as You are currently reverting

Re: Redirect git subcommand to itself?

2015-05-27 Thread Junio C Hamano
Stefan Beller sbel...@google.com writes: so I just run into this problem again (which happens to me maybe twice a week): I want to do a git operations, so I type git into my shell, and then I look around what exactly I want to do and usually I find it in the help text of a previous

Re: Redirect git subcommand to itself?

2015-05-27 Thread Jeff King
On Wed, May 27, 2015 at 06:53:26PM -0700, Junio C Hamano wrote: I wonder if we want to make a git subcommand, which behaves exactly the same as git itself? Then git git git status would just return the same as git status. A few unrelated thoughts. * Perhaps we should omit 'git' from