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

[PATCH v2 5/5] Help doc: Include --guide option description

From
Philip Oakley <philipoakley@iee.org>
Date
Mar 3, 2013, 20:21 UTC
Message-ID
<1362342072-1412-6-git-send-email-philipoakley@iee.org>
In-Reply-To
<1362342072-1412-1-git-send-email-philipoakley@iee.org>

Note that the ability to display an individual guide was always possible. Include this in the update.

Also tell readers how git(1) can be accessed, especially for Git for Windows users who do not have the 'man' command. Likewise include a commentary on how to access this page (Catch 22).

Signed-off-by: Philip Oakley <philipoakley@iee.org>
---
 Documentation/git-help.txt | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/Documentation/git-help.txt b/Documentation/git-help.txt
index e07b6dc..498a94e 100644
--- a/Documentation/git-help.txt
+++ b/Documentation/git-help.txt
@@ -8,31 +8,45 @@ git-help - Display help information about Git
 SYNOPSIS
 --------
 [verse]
-'git help' [-a|--all|-i|--info|-m|--man|-w|--web] [COMMAND]
+'git help' [-a|--all] [-g|--guide]
+	   [-i|--info|-m|--man|-w|--web] [COMMAND|GUIDE]
 
 DESCRIPTION
 -----------
 
-With no options and no COMMAND given, the synopsis of the 'git'
+With no options and no COMMAND|GUIDE given, the synopsis of the 'git'
 command and a list of the most commonly used Git commands are printed
 on the standard output.
 
 If the option '--all' or '-a' is given, then all available commands are
 printed on the standard output.
 
-If a Git subcommand is named, a manual page for that subcommand is brought
-up. The 'man' program is used by default for this purpose, but this
-can be overridden by other options or configuration variables.
+If the option '--guide' or '-g' is given then, a list of the useful
+Git guides is also printed on the standard output.
 
-Note that `git --help ...` is identical to `git help ...` because the
+If a Git subcommand, or a Git guide, is given, a manual page for that
+subcommand is brought up. The 'man' program is used by default for this
+purpose, but this can be overridden by other options or configuration
+variables.
+
+Note that 'git --help ...' is identical to 'git help ...' because the
 former is internally converted into the latter.
 
+To display the linkgit:git[1] man page use 'git help git'.
+
+This page can be displayed with 'git help help' or 'git help --help'
+
 OPTIONS
 -------
 -a::
 --all::
 	Prints all the available commands on the standard output. This
-	option supersedes any other option.
+	option overides any given command or guide name.
+
+-g::
+--guides::
+	Prints a list of useful guides on the standard output. This
+	option overides any given command or guide name.
 
 -i::
 --info::
-- 
1.8.1.msysgit.1
Previous: Philip OakleyNext: Junio C Hamano
Message 13 of 15 in “Git help option to list user guides”
  1. 0/5 Git help option to list user guidesPhilip Oakley, Mar 3, 2013
  2. 1/5 Show 'git help <guide>' usage, with examplesPhilip Oakley, Mar 3, 2013
  3. Junio C HamanoMar 3, 2013
  4. 2/5 Help.c use OPT_COUNTUPPhilip Oakley, Mar 3, 2013
  5. Junio C HamanoMar 3, 2013
  6. Philip OakleyMar 3, 2013
  7. Junio C HamanoMar 4, 2013
  8. Philip OakleyMar 4, 2013
  9. 3/5 Help.c add --guide optionPhilip Oakley, Mar 3, 2013
  10. Junio C HamanoMar 3, 2013
  11. Philip OakleyMar 3, 2013
  12. 4/5 Help.c: add list_common_guides_help() functionPhilip Oakley, Mar 3, 2013
  13. 5/5 Help doc: Include --guide option descriptionPhilip Oakley, Mar 3, 2013
  14. Junio C HamanoMar 3, 2013
  15. Philip OakleyMar 4, 2013

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.