Re: [PATCH] show help message also for aliased commands
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 18, 2010, 02:13 UTC
- Message-ID
- <7v635vwatn.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1266456562-88841-1-git-send-email-patrick.sudowe@rwth-aachen.de>
Patrick Sudowe <patrick.sudowe@rwth-aachen.de> writes:
> git help 'alias' currently only shows the actual git command > 'alias' refers to. This patch changes the behavior so that > the help for the actual git command is shown.
I somehow think this is a horrible change.
I have "[alias] lg = log --oneline --no-merges" and I do appreciate that it tells the expansion, because I also have other similar ones like "[alias] lgm = log --notes-ref=amlog", "lgf", etc.
I don't want the expansion to be erased by manual page of "log"; typically the output from man is piped to less(1).
Besides, I may not know what "log" does, but at least I studied what options it takes when coming up with the hardcoded leading options already. I don't want to see the manual page of "log" by default when I ask git about "lg". If git tells me "lg" expands to "log --oneline", and I do not remember what other options "log" takes, I'll ask git myself about "log", not "lg".