Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-06 Thread Junio C Hamano
Michael J Gruber writes: > Well, even in the simple case one has to wonder: Why does the user > invoke help for "co"? There are two very likely cases: > > A) User does not remember what "co" is aliased to. > B) User wants to see the man page. > > If A is not the case then it's easy for the user t

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-06 Thread Michael J Gruber
Jeff King venit, vidit, dixit 05.03.2013 18:38: > On Tue, Mar 05, 2013 at 02:44:41PM +, Ævar Arnfjörð Bjarmason wrote: > >> Change the semantics of "git --help" to show the help for the >> command is aliased to, instead of just saying: >> >> `git ' is aliased to `' >> >> E.g. if you have

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Jeff King
On Tue, Mar 05, 2013 at 02:44:41PM +, Ævar Arnfjörð Bjarmason wrote: > Change the semantics of "git --help" to show the help for the > command is aliased to, instead of just saying: > > `git ' is aliased to `' > > E.g. if you have "checkout" aliased to "co" you won't get: > > $ gi

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Matthieu Moy
"H.Merijn Brand" writes: > A single word that is (already) known to git as being a valid command > to do --help with. I which case I fully agree. Just to insist on "that is known to git as being a valid command". Compare: $ git foo --help `git foo' is aliased to `bar' with $ git foo --help N

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > No objection to the patch in principle though? I.e. not showing you > what the alias points to. I am not interested enough to even strongly object to such a change, because it is not reasonable to react with a "I know!" to the output of "git co --help", i.e. "'g

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Ævar Arnfjörð Bjarmason
On Tue, Mar 5, 2013 at 5:16 PM, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> Change the semantics of "git --help" to show the help for the >> command is aliased to, instead of just saying: >> >> `git ' is aliased to `' >> >> E.g. if you have "checkout" aliased to "co" you w

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Change the semantics of "git --help" to show the help for the > command is aliased to, instead of just saying: > > `git ' is aliased to `' > > E.g. if you have "checkout" aliased to "co" you won't get: > > $ git co --help > `git co' is aliased to `

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread H.Merijn Brand
On Tue, 05 Mar 2013 16:42:52 +0100, Johannes Sixt wrote: > Am 3/5/2013 15:44, schrieb Ævar Arnfjörð Bjarmason: > > Change the semantics of "git --help" to show the help for the > > command is aliased to, instead of just saying: > > > > `git ' is aliased to `' > > > > E.g. if you have "che

Re: [PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Johannes Sixt
Am 3/5/2013 15:44, schrieb Ævar Arnfjörð Bjarmason: > Change the semantics of "git --help" to show the help for the > command is aliased to, instead of just saying: > > `git ' is aliased to `' > > E.g. if you have "checkout" aliased to "co" you won't get: > > $ git co --help > `git

[PATCH] help: show manpage for aliased command on git --help

2013-03-05 Thread Ævar Arnfjörð Bjarmason
Change the semantics of "git --help" to show the help for the command is aliased to, instead of just saying: `git ' is aliased to `' E.g. if you have "checkout" aliased to "co" you won't get: $ git co --help `git co' is aliased to `checkout' But will instead get the manpage for gi