summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17ef10d)
raw | patch | inline | side by side (parent: 17ef10d)
author | Christian Couder <chriscool@tuxfamily.org> | |
Tue, 4 Dec 2007 05:44:29 +0000 (06:44 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 4 Dec 2007 06:11:38 +0000 (22:11 -0800) |
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-help.txt | [new file with mode: 0644] | patch | blob |
Documentation/git.txt | patch | blob | history | |
Makefile | patch | blob | history | |
command-list.txt | patch | blob | history |
diff --git a/Documentation/git-help.txt b/Documentation/git-help.txt
--- /dev/null
@@ -0,0 +1,48 @@
+git-help(1)
+======
+
+NAME
+----
+git-help - display help information about git
+
+SYNOPSIS
+--------
+'git help' [-a|--all] [COMMAND]
+
+DESCRIPTION
+-----------
+
+With no options and no COMMAND 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 command is named, a manual page for that command is brought
+up. The 'man' program is used by default for this purpose.
+
+Note that 'git --help ...' is identical as 'git help ...' because the
+former is internally converted into the latter.
+
+OPTIONS
+-------
+-a|--all::
+
+ Prints all the available commands on the standard output. This
+ option superseeds any other option.
+
+Author
+------
+Written by Junio C Hamano <gitster@pobox.com> and the git-list
+<git@vger.kernel.org>.
+
+Documentation
+-------------
+Initial documentation was part of the gitlink:git[7] man page.
+Christian Couder <chriscool@tuxfamily.org> extracted and rewrote it a
+little. Maintenance is done by the git-list <git@vger.kernel.org>.
+
+GIT
+---
+Part of the gitlink:git[7] suite
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 9ff4659d8c021465758332270aeaa2c88a593b14..c4e6fc64949ce931d71e49a83d8cacfb1ffad01d 100644 (file)
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
--help::
Prints the synopsis and a list of the most commonly used
- commands. If a git command is named this option will bring up
- the man-page for that command. If the option '--all' or '-a' is
- given then all available commands are printed.
+ 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.
--exec-path::
Path to wherever your core git programs are installed.
diff --git a/Makefile b/Makefile
index feb52c686041e7e820385331eb5f3a3083ea73b2..4b418bf76ed6cbbeb0340eda07cd733570761f8f 100644 (file)
--- a/Makefile
+++ b/Makefile
case "$$how,$$cmd" in \
*,git-citool | \
*,git-gui | \
+ *,git-help | \
documented,gitattributes | \
documented,gitignore | \
documented,gitmodules | \
diff --git a/command-list.txt b/command-list.txt
index d30e86965e93fbbd7644a321127c6967aa0c972c..49506a411ee3a0e88ba44a1dfc65c5dd1a801e8a 100644 (file)
--- a/command-list.txt
+++ b/command-list.txt
git-grep mainporcelain common
git-gui mainporcelain
git-hash-object plumbingmanipulators
+git-help ancillaryinterrogators
git-http-fetch synchelpers
git-http-push synchelpers
git-imap-send foreignscminterface