From: Christian Couder Date: Fri, 23 Nov 2012 20:21:46 GMT Subject: Re: Requirements for integrating a new git subcommand Message-ID: In-Reply-To: <20121122221107.GA16069@thyrsus.com> On Thu, Nov 22, 2012 at 11:11 PM, Eric S. Raymond wrote: > Shawn Pearce : >> [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.