Skip to content

Commit 8b6d792

Browse files
chriscoolgitster
authored andcommitted
Documentation: grep: fix asciidoc problem with --
Asciidoc interprets two dashes separated by spaces as a single big dash. So let's escape the first dash, so that "\--" will properly appear as "--". Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4e0d7a8 commit 8b6d792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-grep.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ OPTIONS
183183
Examples
184184
--------
185185

186-
git grep 'time_t' -- '*.[ch]'::
186+
git grep 'time_t' \-- '*.[ch]'::
187187
Looks for `time_t` in all tracked .c and .h files in the working
188188
directory and its subdirectories.
189189

0 commit comments

Comments
 (0)