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.