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

Re: [PATCH v3 1/3] Add config variable to set HTML path for git-help --web

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 28, 2012, 21:39 UTC
Message-ID
<7vr4sz3yli.fsf@alter.siamese.dyndns.org>
In-Reply-To
<8d3c71d21710c66e4d5560cec958552b69a22338.1340866684.git.chris@arachsys.com>
Chris Webb <chris@arachsys.com> writes:
Show 18 quoted lines
> If set in git-config, help.htmlpath overrides system_path(GIT_HTML_PATH)
> which was compiled in. This allows users to repoint system-wide git at
> their own copy of the documentation without recompiling.
>
> Signed-off-by: Chris Webb <chris@arachsys.com>
> ---
>  builtin/help.c |   11 ++++++++++-
>  1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/builtin/help.c b/builtin/help.c
> index 8f9cd60..b467db2 100644
> --- a/builtin/help.c
> +++ b/builtin/help.c
> @@ -34,6 +34,8 @@ enum help_format {
>  	HELP_FORMAT_WEB
>  };
>  
> +static char *html_path = NULL;
I'll queue after updating this to
	static const char *html_path;

as the return value of const char *system_path(GIT_HTML_PATH) is assigned to it.

Previous: Chris Webb
Message 6 of 6 in “Add config variable to set HTML path for git-help --web”
  1. 1/3 Add config variable to set HTML path for git-help --webChris Webb, Jun 28, 2012
  2. 2/3 Allow help.htmlpath to be a URL prefixChris Webb, Jun 28, 2012
  3. Junio C HamanoJun 28, 2012
  4. Chris WebbJun 28, 2012
  5. 3/3 Add a help format 'usage' to provide brief command usageChris Webb, Jun 28, 2012
  6. Junio C HamanoJun 28, 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.