Skip to content

Commit

Permalink
Documentation: grep: fix asciidoc problem with --
Browse files Browse the repository at this point in the history
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 <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Christian Couder authored and Junio C Hamano committed Jun 25, 2010
1 parent 4e0d7a8 commit 8b6d792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/git-grep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ OPTIONS
Examples
--------

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

Expand Down

0 comments on commit 8b6d792

Please sign in to comment.