Skip to content

Commit 49cbad0

Browse files
jnavilagitster
authored andcommitted
doc: express grammar placeholders between angle brackets
This discerns user inputs from verbatim options in the synopsis. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 06ebae0 commit 49cbad0

12 files changed

+41
-41
lines changed

Documentation/git-cherry-pick.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-cherry-pick - Apply the changes introduced by some existing commits
88
SYNOPSIS
99
--------
1010
[verse]
11-
'git cherry-pick' [--edit] [-n] [-m parent-number] [-s] [-x] [--ff]
11+
'git cherry-pick' [--edit] [-n] [-m <parent-number>] [-s] [-x] [--ff]
1212
[-S[<keyid>]] <commit>...
1313
'git cherry-pick' (--continue | --skip | --abort | --quit)
1414

@@ -81,8 +81,8 @@ OPTIONS
8181
described above, and `-r` was to disable it. Now the
8282
default is not to do `-x` so this option is a no-op.
8383

84-
-m parent-number::
85-
--mainline parent-number::
84+
-m <parent-number>::
85+
--mainline <parent-number>::
8686
Usually you cannot cherry-pick a merge because you do not know which
8787
side of the merge should be considered the mainline. This
8888
option specifies the parent number (starting from 1) of

Documentation/git-config.txt

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ git-config - Get and set repository or global options
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git config' [<file-option>] [--type=<type>] [--fixed-value] [--show-origin] [--show-scope] [-z|--null] name [value [value-pattern]]
13-
'git config' [<file-option>] [--type=<type>] --add name value
14-
'git config' [<file-option>] [--type=<type>] [--fixed-value] --replace-all name value [value-pattern]
15-
'git config' [<file-option>] [--type=<type>] [--show-origin] [--show-scope] [-z|--null] [--fixed-value] --get name [value-pattern]
16-
'git config' [<file-option>] [--type=<type>] [--show-origin] [--show-scope] [-z|--null] [--fixed-value] --get-all name [value-pattern]
17-
'git config' [<file-option>] [--type=<type>] [--show-origin] [--show-scope] [-z|--null] [--fixed-value] [--name-only] --get-regexp name_regex [value-pattern]
18-
'git config' [<file-option>] [--type=<type>] [-z|--null] --get-urlmatch name URL
19-
'git config' [<file-option>] [--fixed-value] --unset name [value-pattern]
20-
'git config' [<file-option>] [--fixed-value] --unset-all name [value-pattern]
21-
'git config' [<file-option>] --rename-section old_name new_name
22-
'git config' [<file-option>] --remove-section name
12+
'git config' [<file-option>] [--type=<type>] [--fixed-value] [--show-origin] [--show-scope] [-z|--null] <name> [<value> [<value-pattern>]]
13+
'git config' [<file-option>] [--type=<type>] --add <name> <value>
14+
'git config' [<file-option>] [--type=<type>] [--fixed-value] --replace-all <name> <value> [<value-pattern>]
15+
'git config' [<file-option>] [--type=<type>] [--show-origin] [--show-scope] [-z|--null] [--fixed-value] --get <name> [<value-pattern>]
16+
'git config' [<file-option>] [--type=<type>] [--show-origin] [--show-scope] [-z|--null] [--fixed-value] --get-all <name> [<value-pattern>]
17+
'git config' [<file-option>] [--type=<type>] [--show-origin] [--show-scope] [-z|--null] [--fixed-value] [--name-only] --get-regexp <name-regex> [<value-pattern>]
18+
'git config' [<file-option>] [--type=<type>] [-z|--null] --get-urlmatch <name> <URL>
19+
'git config' [<file-option>] [--fixed-value] --unset <name> [<value-pattern>]
20+
'git config' [<file-option>] [--fixed-value] --unset-all <name> [<value-pattern>]
21+
'git config' [<file-option>] --rename-section <old-name> <new-name>
22+
'git config' [<file-option>] --remove-section <name>
2323
'git config' [<file-option>] [--show-origin] [--show-scope] [-z|--null] [--name-only] -l | --list
24-
'git config' [<file-option>] --get-color name [default]
25-
'git config' [<file-option>] --get-colorbool name [stdout-is-tty]
24+
'git config' [<file-option>] --get-color <name> [<default>]
25+
'git config' [<file-option>] --get-colorbool <name> [<stdout-is-tty>]
2626
'git config' [<file-option>] -e | --edit
2727

2828
DESCRIPTION
@@ -102,9 +102,9 @@ OPTIONS
102102
in which section and variable names are lowercased, but subsection
103103
names are not.
104104

105-
--get-urlmatch name URL::
105+
--get-urlmatch <name> <URL>::
106106
When given a two-part name section.key, the value for
107-
section.<url>.key whose <url> part matches the best to the
107+
section.<URL>.key whose <URL> part matches the best to the
108108
given URL is returned (if no such key exists, the value for
109109
section.key is used as a fallback). When given just the
110110
section as name, do so for all the keys in the section and
@@ -145,8 +145,8 @@ See also <<FILES>>.
145145
read from or written to if `extensions.worktreeConfig` is
146146
present. If not it's the same as `--local`.
147147

148-
-f config-file::
149-
--file config-file::
148+
-f <config-file>::
149+
--file <config-file>::
150150
For writing options: write to the specified file rather than the
151151
repository `.git/config`.
152152
+
@@ -155,7 +155,7 @@ available files.
155155
+
156156
See also <<FILES>>.
157157

158-
--blob blob::
158+
--blob <blob>::
159159
Similar to `--file` but use the given blob instead of a file. E.g.
160160
you can use 'master:.gitmodules' to read values from the file
161161
'.gitmodules' in the master branch. See "SPECIFYING REVISIONS"
@@ -246,18 +246,18 @@ Valid `<type>`'s include:
246246
all queried config options with the scope of that value
247247
(local, global, system, command).
248248

249-
--get-colorbool name [stdout-is-tty]::
249+
--get-colorbool <name> [<stdout-is-tty>]::
250250

251-
Find the color setting for `name` (e.g. `color.diff`) and output
252-
"true" or "false". `stdout-is-tty` should be either "true" or
251+
Find the color setting for `<name>` (e.g. `color.diff`) and output
252+
"true" or "false". `<stdout-is-tty>` should be either "true" or
253253
"false", and is taken into account when configuration says
254-
"auto". If `stdout-is-tty` is missing, then checks the standard
254+
"auto". If `<stdout-is-tty>` is missing, then checks the standard
255255
output of the command itself, and exits with status 0 if color
256256
is to be used, or exits with status 1 otherwise.
257257
When the color setting for `name` is undefined, the command uses
258258
`color.ui` as fallback.
259259

260-
--get-color name [default]::
260+
--get-color <name> [<default>]::
261261

262262
Find the color configured for `name` (e.g. `color.diff.new`) and
263263
output it as the ANSI color escape sequence to the standard

Documentation/git-cvsexportcommit.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ git-cvsexportcommit - Export a single commit to a CVS checkout
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git cvsexportcommit' [-h] [-u] [-v] [-c] [-P] [-p] [-a] [-d cvsroot]
13-
[-w cvsworkdir] [-W] [-f] [-m msgprefix] [PARENTCOMMIT] COMMITID
12+
'git cvsexportcommit' [-h] [-u] [-v] [-c] [-P] [-p] [-a] [-d <cvsroot>]
13+
[-w <cvs-workdir>] [-W] [-f] [-m <msgprefix>] [<parent-commit>] <commit-id>
1414

1515

1616
DESCRIPTION

Documentation/git-gui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-gui - A portable graphical interface to Git
88
SYNOPSIS
99
--------
1010
[verse]
11-
'git gui' [<command>] [arguments]
11+
'git gui' [<command>] [<arguments>]
1212

1313
DESCRIPTION
1414
-----------

Documentation/git-help.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'git help' [-a|--all [--[no-]verbose]] [-g|--guides]
12-
[-i|--info|-m|--man|-w|--web] [COMMAND|GUIDE]
12+
[-i|--info|-m|--man|-w|--web] [<command>|<guide>]
1313

1414
DESCRIPTION
1515
-----------
1616

17-
With no options and no COMMAND or GUIDE given, the synopsis of the 'git'
17+
With no options and no '<command>' or '<guide>' given, the synopsis of the 'git'
1818
command and a list of the most commonly used Git commands are printed
1919
on the standard output.
2020

@@ -31,7 +31,7 @@ variables.
3131

3232
If an alias is given, git shows the definition of the alias on
3333
standard output. To get the manual page for the aliased command, use
34-
`git COMMAND --help`.
34+
`git <command> --help`.
3535

3636
Note that `git --help ...` is identical to `git help ...` because the
3737
former is internally converted into the latter.

Documentation/git-http-fetch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-http-fetch - Download from a remote Git repository via HTTP
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [--stdin | --packfile=<hash> | <commit>] <url>
12+
'git http-fetch' [-c] [-t] [-a] [-d] [-v] [-w <filename>] [--recover] [--stdin | --packfile=<hash> | <commit>] <url>
1313

1414
DESCRIPTION
1515
-----------

Documentation/git-init.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ SYNOPSIS
1212
'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
1313
[--separate-git-dir <git dir>] [--object-format=<format>]
1414
[-b <branch-name> | --initial-branch=<branch-name>]
15-
[--shared[=<permissions>]] [directory]
15+
[--shared[=<permissions>]] [<directory>]
1616

1717

1818
DESCRIPTION

Documentation/git-pack-objects.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ SYNOPSIS
1313
[--no-reuse-delta] [--delta-base-offset] [--non-empty]
1414
[--local] [--incremental] [--window=<n>] [--depth=<n>]
1515
[--revs [--unpacked | --all]] [--keep-pack=<pack-name>]
16-
[--stdout [--filter=<filter-spec>] | base-name]
17-
[--shallow] [--keep-true-parents] [--[no-]sparse] < object-list
16+
[--stdout [--filter=<filter-spec>] | <base-name>]
17+
[--shallow] [--keep-true-parents] [--[no-]sparse] < <object-list>
1818

1919

2020
DESCRIPTION

Documentation/git-pack-redundant.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-pack-redundant - Find redundant pack files
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... >
12+
'git pack-redundant' [ --verbose ] [ --alt-odb ] ( --all | <pack-filename>... )
1313

1414
DESCRIPTION
1515
-----------

Documentation/git-reflog.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ The command takes various subcommands, and different options
1717
depending on the subcommand:
1818

1919
[verse]
20-
'git reflog' ['show'] [log-options] [<ref>]
20+
'git reflog' ['show'] [<log-options>] [<ref>]
2121
'git reflog expire' [--expire=<time>] [--expire-unreachable=<time>]
2222
[--rewrite] [--updateref] [--stale-fix]
2323
[--dry-run | -n] [--verbose] [--all [--single-worktree] | <refs>...]
2424
'git reflog delete' [--rewrite] [--updateref]
25-
[--dry-run | -n] [--verbose] ref@\{specifier\}...
25+
[--dry-run | -n] [--verbose] <ref>@\{<specifier>\}...
2626
'git reflog exists' <ref>
2727

2828
Reference logs, or "reflogs", record when the tips of branches and

0 commit comments

Comments
 (0)