Re: Using '--help' for aliases

2017-06-24 Thread brian m. carlson
On Thu, Jun 22, 2017 at 12:11:29AM +0530, Kaartic Sivaraam wrote: > I am yet another user of 'git alias' (who wouldn't ?). It has become so > natural to me to use the aliased version that at some point of time I > tried the following, > > > $ git co --help > > `git co' is aliased to `checkout' >

Re: Using '--help' for aliases

2017-06-21 Thread Samuel Lijin
You could also just make the alias a bash function that does git help checkout when you pass the --help flag to the alias.

Re: Using '--help' for aliases

2017-06-21 Thread Kaartic Sivaraam
On Wed, 2017-06-21 at 14:55 -0400, Jeff King wrote: > It could do that. I think we even discussed it at one point, > but I > didn't dig up the thread. However, you have the problem that running > "man checkout" is likely to clobber the mention of the alias. So the > question is whether it is more

Re: Using '--help' for aliases

2017-06-21 Thread Jeff King
On Thu, Jun 22, 2017 at 12:11:29AM +0530, Kaartic Sivaraam wrote: > I am yet another user of 'git alias' (who wouldn't ?). It has become so > natural to me to use the aliased version that at some point of time I > tried the following, > > > $ git co --help > > `git co' is aliased to `checkout' >

Using '--help' for aliases

2017-06-21 Thread Kaartic Sivaraam
Hello all, I am yet another user of 'git alias' (who wouldn't ?). It has become so natural to me to use the aliased version that at some point of time I tried the following, > $ git co --help > `git co' is aliased to `checkout' That made me wonder. Git is able to inform the user that 'co' is