Skip to content

Commit f7a32dd

Browse files
Ikkegitster
authored andcommitted
doc/for-each-ref: explicitly specify option names
For count, sort and format, only the argument names were listed under OPTIONS, not the option names. Add the option names to make it clear the options exist Signed-off-by: Kevin Daudt <me@ikke.info> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 3233d51 commit f7a32dd

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Documentation/git-for-each-ref.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,25 @@ host language allowing their direct evaluation in that language.
2626

2727
OPTIONS
2828
-------
29-
<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>::
3036
By default the command shows all refs that match
3137
`<pattern>`. This option makes it stop after showing
3238
that many refs.
3339

34-
<key>::
40+
--sort=<key>::
3541
A field name to sort on. Prefix `-` to sort in
3642
descending order of the value. When unspecified,
3743
`refname` is used. You may use the --sort=<key> option
3844
multiple times, in which case the last key becomes the primary
3945
key.
4046

41-
<format>::
47+
--format=<format>::
4248
A string that interpolates `%(fieldname)` from a ref being shown
4349
and the object it points at. If `fieldname`
4450
is prefixed with an asterisk (`*`) and the ref points
@@ -51,12 +57,6 @@ OPTIONS
5157
`xx`; for example `%00` interpolates to `\0` (NUL),
5258
`%09` to `\t` (TAB) and `%0a` to `\n` (LF).
5359

54-
<pattern>...::
55-
If one or more patterns are given, only refs are shown that
56-
match against at least one pattern, either using fnmatch(3) or
57-
literally, in the latter case matching completely or from the
58-
beginning up to a slash.
59-
6060
--shell::
6161
--perl::
6262
--python::

0 commit comments

Comments
 (0)