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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 5, 2013, 16:52 UTC
Message-ID
<7v4ngpvlfj.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACBZZX5=ARahxswkN_mLbBF3fQxV-HtKgehe_3ogHg5-i7utYw@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> 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. "'git co' is aliased to 'checkout'", in the first place. Also some users may find it inconsistent if a single bareword jumps directly to the manpage and other input shows alias expansion.

So,... I do not see a very big plus in the proposed (and then amended by others in the thread) change, but if the damage to the code that is necessary to implement it is not too bad, perhaps it is an OK thing to do. I don't know without seeing the patch.

Previous: Ævar Arnfjörð BjarmasonNext: Jeff King
Message 7 of 10 in “help: show manpage for aliased command on git <alias> --help”
  1. help: show manpage for aliased command on git <alias> --helpÆvar Arnfjörð Bjarmason, Mar 5, 2013
  2. Johannes SixtMar 5, 2013
  3. H.Merijn BrandMar 5, 2013
  4. Matthieu MoyMar 5, 2013
  5. Junio C HamanoMar 5, 2013
  6. Ævar Arnfjörð BjarmasonMar 5, 2013
  7. Junio C HamanoMar 5, 2013
  8. Jeff KingMar 5, 2013
  9. Michael J GruberMar 6, 2013
  10. Junio C HamanoMar 6, 2013

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.