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

Re: msysgit, help: teach git help to open html from /doc/git/html/

From
Steffen Prohaska <prohaska@zib.de>
Date
Aug 11, 2007, 22:05 UTC
Message-ID
<37CBFBA3-6A07-44D7-BFCF-5C969C123000@zib.de>
In-Reply-To
<7vps1tlpbb.fsf@assigned-by-dhcp.cox.net>
On Aug 11, 2007, at 11:43 PM, Junio C Hamano wrote:
Show 11 quoted lines
> Steffen Prohaska <prohaska@zib.de> writes:
>
>> Junio,
>> are you interested in such patches at this time. The patch doesn't
>> interfere with the existing code, but clutters it with ifdefs.
>
> Actually "showing HTML pages upon 'git help' request" makes
> sense even on Unixen.  I think a patch to help.c::cmd_help()
> that allows the user to specify alternate action before going to
> the codepath to call show_man_page(help_cmd) would make sense,
> like the attached patch.

So the custom command needs to have the knowledge how to find the page (as 'man' has), based on the string 'git-<command>'.

Makes sense to me to build only the generic mechanism into help.c and delegate the rest to core.helpcmd.

> Having said that, a patch that makes the build procedure depend
> on the presense of the html branch is unacceptable, as that
> branch does not even exist in my private build repository.

Sure, the build procedure doesn't depend on it. The executable wouldn't do anything useful if no html is present.

> If you are building html pages from the source, it surely would
> make sense.

I'd prefer to fetch pages from your repo, at least for msysgit. Building them requires tools that are, to my knowledge, not present in msysgit.

	Steffen
Previous: Junio C HamanoNext: Nguyen Thai Ngoc Duy
Message 3 of 6 in “msysgit, help: teach git help to open html from /doc/git/html/”
  1. Steffen ProhaskaAug 11, 2007
  2. Junio C HamanoAug 11, 2007
  3. Steffen ProhaskaAug 11, 2007
  4. Nguyen Thai Ngoc DuyAug 12, 2007
  5. Nguyen Thai Ngoc DuyAug 12, 2007
  6. Steffen ProhaskaAug 12, 2007

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.