Skip to content

Commit bfb8306

Browse files
MarkLodatogitster
authored andcommitted
grep docs: use AsciiDoc literals consistently
The convention for this particular page is to use AsciiDoc literal strings only for options (`-x` or `--long`), but not for definition list terms and not for <meta-vars>. Signed-off-by: Mark Lodato <lodatom@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0441601 commit bfb8306

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Documentation/git-grep.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ OPTIONS
9898
--files-without-match::
9999
Instead of showing every matched line, show only the
100100
names of files that contain (or do not contain) matches.
101-
For better compatibility with 'git diff', --name-only is a
102-
synonym for --files-with-matches.
101+
For better compatibility with 'git diff', `--name-only` is a
102+
synonym for `--files-with-matches`.
103103

104104
-z::
105105
--null::
@@ -125,7 +125,7 @@ OPTIONS
125125
matches.
126126

127127
-<num>::
128-
A shortcut for specifying -C<num>.
128+
A shortcut for specifying `-C<num>`.
129129

130130
-p::
131131
--show-function::
@@ -140,7 +140,7 @@ OPTIONS
140140

141141
-e::
142142
The next parameter is the pattern. This option has to be
143-
used for patterns starting with - and should be used in
143+
used for patterns starting with `-` and should be used in
144144
scripts passing user input to grep. Multiple patterns are
145145
combined by 'or'.
146146

@@ -163,7 +163,7 @@ OPTIONS
163163
Do not output matched lines; instead, exit with status 0 when
164164
there is a match and with non-zero status when there isn't.
165165

166-
`<tree>...`::
166+
<tree>...::
167167
Search blobs in the trees for specified patterns.
168168

169169
\--::

0 commit comments

Comments
 (0)