Re: [PATCH] show help message also for aliased commands
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:48:18
Patrick Sudowe [off-list ref] 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".