Git fork

git help doc: use "<doc>" instead of "<guide>"

Replace the use of "<guide>" originally introduced (as "GUIDE") in
a133737b809 (doc: include --guide option description for "git help",
2013-04-02) with the more generic "<doc>". The "<doc>" placeholder is
more generic, and one we'll be able to use as we introduce new
documentation categories.

Let's also add "<doc>" to the "git help -h" output, when it was made
to use parse_option() in in 41eb33bd0cb (help: use parseopt,
2008-02-24).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Ævar Arnfjörð Bjarmason and committed by
Junio C Hamano
dba1e539 936b8eb6

+5 -5
+4 -4
Documentation/git-help.txt
··· 9 9 -------- 10 10 [verse] 11 11 'git help' [-a|--all] [--[no-]verbose] [--[no-]external-commands] [--[no-]aliases] 12 - 'git help' [[-i|--info] [-m|--man] [-w|--web]] [<command>|<guide>] 12 + 'git help' [[-i|--info] [-m|--man] [-w|--web]] [<command>|<doc>] 13 13 'git help' [-g|--guides] 14 14 'git help' [-c|--config] 15 15 16 16 DESCRIPTION 17 17 ----------- 18 18 19 - With no options and no '<command>' or '<guide>' given, the synopsis of the 'git' 19 + With no options and no '<command>' or '<doc>' given, the synopsis of the 'git' 20 20 command and a list of the most commonly used Git commands are printed 21 21 on the standard output. 22 22 ··· 26 26 If the option `--guides` or `-g` is given, a list of the 27 27 Git concept guides is also printed on the standard output. 28 28 29 - If a command, or a guide, is given, a manual page for that command or 30 - guide is brought up. The 'man' program is used by default for this 29 + If a command or other documentation is given, the relevant manual page 30 + will be brought up. The 'man' program is used by default for this 31 31 purpose, but this can be overridden by other options or configuration 32 32 variables. 33 33
+1 -1
builtin/help.c
··· 81 81 82 82 static const char * const builtin_help_usage[] = { 83 83 "git help [-a|--all] [--[no-]verbose]] [--[no-]external-commands] [--[no-]aliases]", 84 - N_("git help [[-i|--info] [-m|--man] [-w|--web]] [<command>]"), 84 + N_("git help [[-i|--info] [-m|--man] [-w|--web]] [<command>|<doc>]"), 85 85 "git help [-g|--guides]", 86 86 "git help [-c|--config]", 87 87 NULL