Re: [PATCH] help: show manpage for aliased command on git <alias> --help
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Mar 5, 2013, 16:32 UTC
- Message-ID
- <CACBZZX5=ARahxswkN_mLbBF3fQxV-HtKgehe_3ogHg5-i7utYw@mail.gmail.com>
- In-Reply-To
- <7v8v61vn3h.fsf@alter.siamese.dyndns.org>
On Tue, Mar 5, 2013 at 5:16 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 21 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes: > >> Change the semantics of "git <alias> --help" to show the help for the >> command <alias> is aliased to, instead of just saying: >> >> `git <alias>' is aliased to `<whatever>' >> >> E.g. if you have "checkout" aliased to "co" you won't get: >> >> $ git co --help >> `git co' is aliased to `checkout' > > If you had "lg" aliased to "log --oneline" and you made > > $ git lg --help > > to give anything but > > 'git lg' is aliased to `log --oneline' > > I would say that is a grave regression.
Good point. I'll fix that up.
No objection to the patch in principle though? I.e. not showing you what the alias points to.