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

[PATCH v2] git.c: show usage for accessing the git(1) help page

From
Philip Oakley <philipoakley@iee.org>
Date
May 15, 2019, 08:11 UTC
Message-ID
<20190515081112.12340-1-philipoakley@iee.org>
In-Reply-To
<7bd330d7-81f1-52b4-52d3-b74b128af83a@iee.org>

It is not immediately obvious how to use the `git help` system to show the git(1) page, with its overview and its background and coordinating material, such as environment variables.

Let's simply list it as the last few words of the last usage line.
Signed-off-by: Philip Oakley <philipoakley@iee.org>
---
This follows from the discussion <3cd065d1-9db5-f2e6-ddff-aa539746d45e@iee.org>
---
 git.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/git.c b/git.c
index 2324ac0b7e..4797941dfd 100644
--- a/git.c
+++ b/git.c
@@ -33,7 +33,8 @@ const char git_usage_string[] =
 const char git_more_info_string[] =
 	N_("'git help -a' and 'git help -g' list available subcommands and some\n"
 	   "concept guides. See 'git help <command>' or 'git help <concept>'\n"
-	   "to read about a specific subcommand or concept.");
+	   "to read about a specific subcommand or concept.\n"
+	   "Use 'git help git' for an overview of the system.");
 
 static int use_pager = -1;
 
-- 
2.21.0.windows.1.1517.gbad5f960a3.dirty
Previous: Philip OakleyNext: Eric Sunshine
Message 10 of 19 in “git --help not actually showing the git(1) help page..”
  1. Philip OakleyMay 13, 2019
  2. Jeff KingMay 13, 2019
  3. Philip OakleyMay 13, 2019
  4. Junio C HamanoMay 13, 2019
  5. Philip OakleyMay 14, 2019
  6. git.c: show usage for accessing the git(1) help pagePhilip Oakley, May 14, 2019
  7. Emily ShafferMay 15, 2019
  8. Jeff KingMay 15, 2019
  9. Philip OakleyMay 15, 2019
  10. git.c: show usage for accessing the git(1) help pagePhilip Oakley, May 15, 2019
  11. Eric SunshineMay 15, 2019
  12. 0/2 accessing the git(1) help pagePhilip Oakley, May 15, 2019
  13. 1/2 git.c: show usage for accessing the git(1) help pagePhilip Oakley, May 15, 2019
  14. 2/2 Doc: git.txt: remove backticks from link and add git-scm.com/docsPhilip Oakley, May 15, 2019
  15. Junio C HamanoMay 16, 2019
  16. Philip OakleyMay 16, 2019
  17. Jeff KingMay 16, 2019
  18. Philip OakleyMay 16, 2019
  19. Philip OakleyMay 15, 2019

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.