Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:54:11

Chris Webb [off-list ref] writes:
quoted hunk
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 <redacted>
---
 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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help