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

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:57

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