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

[PATCH] help -i: properly error out if no info viewer can be found

From
Gerrit Pape <pape@smarden.org>
Date
Oct 27, 2009, 13:31 UTC
Message-ID
<20091027133134.28975.qmail@34dfe9cde77152.315fe32.mid.smarden.org>

With this commit, git help -i <cmd> prints an error message and exits non-zero instead of being silent and exit code 0.

Reported by Trent W. Buck through
 http://bugs.debian.org/537664
Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 builtin-help.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/builtin-help.c b/builtin-help.c
index e1eba77..e1ade8e 100644
--- a/builtin-help.c
+++ b/builtin-help.c
@@ -372,6 +372,7 @@ static void show_info_page(const char *git_cmd)
 	const char *page = cmd_to_page(git_cmd);
 	setenv("INFOPATH", system_path(GIT_INFO_PATH), 1);
 	execlp("info", "info", "gitman", page, NULL);
+	die("no info viewer handled the request");
 }
 
 static void get_html_page_path(struct strbuf *page_path, const char *page)
-- 
1.6.5.2
Next: Junio C Hamano
Message 1 of 2 in “help -i: properly error out if no info viewer can be found”
  1. help -i: properly error out if no info viewer can be foundGerrit Pape, Oct 27, 2009
  2. Junio C HamanoOct 28, 2009

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.