Skip to content

Commit 5a4ec5c

Browse files
committed
Merge branch 'kd/doc-for-each-ref' into maint
Doc update. * kd/doc-for-each-ref: doc/for-each-ref: explicitly specify option names doc/for-each-ref: consistently use '=' to between argument names and values
2 parents 1c45e39 + f7a32dd commit 5a4ec5c

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

Documentation/git-for-each-ref.txt

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ SYNOPSIS
1010
[verse]
1111
'git for-each-ref' [--count=<count>] [--shell|--perl|--python|--tcl]
1212
[(--sort=<key>)...] [--format=<format>] [<pattern>...]
13-
[--points-at <object>] [(--merged | --no-merged) [<object>]]
14-
[--contains [<object>]] [--no-contains [<object>]]
13+
[--points-at=<object>]
14+
(--merged[=<object>] | --no-merged[=<object>])
15+
[--contains[=<object>]] [--no-contains[=<object>]]
1516

1617
DESCRIPTION
1718
-----------
@@ -25,19 +26,25 @@ host language allowing their direct evaluation in that language.
2526

2627
OPTIONS
2728
-------
28-
<count>::
29+
<pattern>...::
30+
If one or more patterns are given, only refs are shown that
31+
match against at least one pattern, either using fnmatch(3) or
32+
literally, in the latter case matching completely or from the
33+
beginning up to a slash.
34+
35+
--count=<count>::
2936
By default the command shows all refs that match
3037
`<pattern>`. This option makes it stop after showing
3138
that many refs.
3239

33-
<key>::
40+
--sort=<key>::
3441
A field name to sort on. Prefix `-` to sort in
3542
descending order of the value. When unspecified,
3643
`refname` is used. You may use the --sort=<key> option
3744
multiple times, in which case the last key becomes the primary
3845
key.
3946

40-
<format>::
47+
--format=<format>::
4148
A string that interpolates `%(fieldname)` from a ref being shown
4249
and the object it points at. If `fieldname`
4350
is prefixed with an asterisk (`*`) and the ref points
@@ -50,12 +57,6 @@ OPTIONS
5057
`xx`; for example `%00` interpolates to `\0` (NUL),
5158
`%09` to `\t` (TAB) and `%0a` to `\n` (LF).
5259

53-
<pattern>...::
54-
If one or more patterns are given, only refs are shown that
55-
match against at least one pattern, either using fnmatch(3) or
56-
literally, in the latter case matching completely or from the
57-
beginning up to a slash.
58-
5960
--shell::
6061
--perl::
6162
--python::
@@ -65,24 +66,24 @@ OPTIONS
6566
the specified host language. This is meant to produce
6667
a scriptlet that can directly be `eval`ed.
6768

68-
--points-at <object>::
69+
--points-at=<object>::
6970
Only list refs which points at the given object.
7071

71-
--merged [<object>]::
72+
--merged[=<object>]::
7273
Only list refs whose tips are reachable from the
7374
specified commit (HEAD if not specified),
7475
incompatible with `--no-merged`.
7576

76-
--no-merged [<object>]::
77+
--no-merged[=<object>]::
7778
Only list refs whose tips are not reachable from the
7879
specified commit (HEAD if not specified),
7980
incompatible with `--merged`.
8081

81-
--contains [<object>]::
82+
--contains[=<object>]::
8283
Only list refs which contain the specified commit (HEAD if not
8384
specified).
8485

85-
--no-contains [<object>]::
86+
--no-contains[=<object>]::
8687
Only list refs which don't contain the specified commit (HEAD
8788
if not specified).
8889

0 commit comments

Comments
 (0)