Skip to content

Commit 0f6f195

Browse files
chriscoolgitster
authored andcommitted
Documentation: add a new man page for "git-help"
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 17ef10d commit 0f6f195

File tree

4 files changed

+53
-3
lines changed

4 files changed

+53
-3
lines changed

Documentation/git-help.txt

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
git-help(1)
2+
======
3+
4+
NAME
5+
----
6+
git-help - display help information about git
7+
8+
SYNOPSIS
9+
--------
10+
'git help' [-a|--all] [COMMAND]
11+
12+
DESCRIPTION
13+
-----------
14+
15+
With no options and no COMMAND given, the synopsis of the 'git'
16+
command and a list of the most commonly used git commands are printed
17+
on the standard output.
18+
19+
If the option '--all' or '-a' is given, then all available commands are
20+
printed on the standard output.
21+
22+
If a git command is named, a manual page for that command is brought
23+
up. The 'man' program is used by default for this purpose.
24+
25+
Note that 'git --help ...' is identical as 'git help ...' because the
26+
former is internally converted into the latter.
27+
28+
OPTIONS
29+
-------
30+
-a|--all::
31+
32+
Prints all the available commands on the standard output. This
33+
option superseeds any other option.
34+
35+
Author
36+
------
37+
Written by Junio C Hamano <gitster@pobox.com> and the git-list
38+
<git@vger.kernel.org>.
39+
40+
Documentation
41+
-------------
42+
Initial documentation was part of the gitlink:git[7] man page.
43+
Christian Couder <chriscool@tuxfamily.org> extracted and rewrote it a
44+
little. Maintenance is done by the git-list <git@vger.kernel.org>.
45+
46+
GIT
47+
---
48+
Part of the gitlink:git[7] suite

Documentation/git.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ OPTIONS
101101

102102
--help::
103103
Prints the synopsis and a list of the most commonly used
104-
commands. If a git command is named this option will bring up
105-
the man-page for that command. If the option '--all' or '-a' is
106-
given then all available commands are printed.
104+
commands. If the option '--all' or '-a' is given then all
105+
available commands are printed. If a git command is named this
106+
option will bring up the manual page for that command.
107107

108108
--exec-path::
109109
Path to wherever your core git programs are installed.

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,7 @@ check-docs::
11581158
case "$$how,$$cmd" in \
11591159
*,git-citool | \
11601160
*,git-gui | \
1161+
*,git-help | \
11611162
documented,gitattributes | \
11621163
documented,gitignore | \
11631164
documented,gitmodules | \

command-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ git-get-tar-commit-id ancillaryinterrogators
4646
git-grep mainporcelain common
4747
git-gui mainporcelain
4848
git-hash-object plumbingmanipulators
49+
git-help ancillaryinterrogators
4950
git-http-fetch synchelpers
5051
git-http-push synchelpers
5152
git-imap-send foreignscminterface

0 commit comments

Comments
 (0)