git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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".

Previous: Patrick SudoweNext: Jeff King
Message 2 of 3 in “show help message also for aliased commands”
  1. show help message also for aliased commandsPatrick Sudowe, Feb 18, 2010
  2. Junio C HamanoFeb 18, 2010
  3. Jeff KingFeb 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.