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

Re: [PATCH 2/3] git-help: add -w|--web option to display html man page in a browser.

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 8, 2007, 08:28 UTC
Message-ID
<7vir39wpxf.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071202060755.4d6d5ec8.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily.org> writes:
Show 14 quoted lines
> diff --git a/help.c b/help.c
> index 0f1cb71..ecc8c66 100644
> --- a/help.c
> +++ b/help.c
> @@ -265,6 +265,12 @@ static void show_info_page(const char *git_cmd)
>  	execlp("info", "info", page, NULL);
>  }
>  
> +static void show_html_page(const char *git_cmd)
> +{
> +	const char *page = cmd_to_page(git_cmd);
> +	execlp("git-browse-help", "git-browse-help", page, NULL);
> +}
> +

This should be execl_git_cmd() to honor GIT_TRACE and to help transition to bindir != gitexecdir layout, I think.

Previous: Junio C Hamano
Message 8 of 8 in “git-help: add -w|--web option to display html man page in a browser.”
  1. 2/3 git-help: add -w|--web option to display html man page in a browser.Christian Couder, Dec 2, 2007
  2. Junio C HamanoDec 6, 2007
  3. Christian CouderDec 7, 2007
  4. Junio C HamanoDec 7, 2007
  5. Junio C HamanoDec 7, 2007
  6. Christian CouderDec 8, 2007
  7. Junio C HamanoDec 6, 2007
  8. Junio C HamanoDec 8, 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.