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

Re: Requirements for integrating a new git subcommand

From
Christian Couder <christian.couder@gmail.com>
Date
Nov 23, 2012, 20:21 UTC
Message-ID
<CAP8UFD1aGJJMx74RXGTy4hO=Wdv3dDuX4P3UEEGgYvcA_j=M1A@mail.gmail.com>
In-Reply-To
<20121122221107.GA16069@thyrsus.com>
On Thu, Nov 22, 2012 at 11:11 PM, Eric S. Raymond <esr@thyrsus.com> wrote:
Show 8 quoted lines
> Shawn Pearce <spearce@spearce.org>:
>> [Lots of helpful stuff ended by]
>> > 4. How does "git help" work?  That is, how is a subcommand expected
>> > to know when it is being called to export its help text?
>>
>> IIRC "git help foo" runs "man git-foo".
>
> OK, that makes sense.

"git help" can also launch a browser to display the HTML version of the man page. It is looking for man pages and HTML docs in the paths given by "git --man-path" and "git --html-path".

Cheers, Christian.

Previous: Eric S. RaymondNext: Eric S. Raymond
Message 6 of 12 in “Requirements for integrating a new git subcommand”
  1. Eric S. RaymondNov 22, 2012
  2. Shawn PearceNov 22, 2012
  3. Eric S. RaymondNov 22, 2012
  4. Michael J GruberNov 23, 2012
  5. Eric S. RaymondNov 23, 2012
  6. Christian CouderNov 23, 2012
  7. Eric S. RaymondNov 23, 2012
  8. Peter KreftingNov 23, 2012
  9. Eric S. RaymondNov 23, 2012
  10. Peter KreftingNov 26, 2012
  11. Junio C HamanoNov 26, 2012
  12. Eric S. RaymondNov 26, 2012

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.