summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2007-12-04 06:44:29 +0100
committerJunio C Hamano <gitster@pobox.com>2007-12-03 22:16:54 -0800
commit45533d2694d480be86112f2da36d555e7373ba24 (patch)
tree1d838477ae8d78c4b1cc0efcd57e56be9b5a1159
parentdf55c9cbc3ea79c51d5f41a628439283e94a87fd (diff)
downloadgit-45533d2694d480be86112f2da36d555e7373ba24.tar.gz
Documentation: describe -i/--info option to "git-help"
Option -i|--info for "git-help" is documented only in the new "git-help.txt" man page, but this new man page is referenced from the "--help" option documentation in the "git.txt" man page. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-help.txt9
-rw-r--r--Documentation/git.txt5
2 files changed, 12 insertions, 2 deletions
diff --git a/Documentation/git-help.txt b/Documentation/git-help.txt
index a2255bc55a..232daae0d9 100644
--- a/Documentation/git-help.txt
+++ b/Documentation/git-help.txt
@@ -7,7 +7,7 @@ git-help - display help information about git
SYNOPSIS
--------
-'git help' [-a|--all] [COMMAND]
+'git help' [-a|--all|-i|--info] [COMMAND]
DESCRIPTION
-----------
@@ -20,7 +20,8 @@ If the option '--all' or '-a' is given, then all available commands are
printed on the standard output.
If a git command is named, a manual page for that command is brought
-up. The 'man' program is used by default for this purpose.
+up. The 'man' program is used by default for this purpose, but this
+can be overriden by other options.
Note that 'git --help ...' is identical as 'git help ...' because the
former is internally converted into the latter.
@@ -32,6 +33,10 @@ OPTIONS
Prints all the available commands on the standard output. This
option superseeds any other option.
+-i|--info::
+ Use the 'info' program to display the manual page, instead of
+ the 'man' program that is used by default.
+
Author
------
Written by Junio C Hamano <gitster@pobox.com> and the git-list
diff --git a/Documentation/git.txt b/Documentation/git.txt
index c4e6fc6494..c4e4d24ea4 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -104,6 +104,11 @@ OPTIONS
commands. If the option '--all' or '-a' is given then all
available commands are printed. If a git command is named this
option will bring up the manual page for that command.
++
+Other options are available to control how the manual page is
+displayed. See gitlink:git-help[1] for more information,
+because 'git --help ...' is converted internally into 'git
+help ...'.
--exec-path::
Path to wherever your core git programs are installed.