Documentation: grep: fix asciidoc problem with --
authorChristian Couder <chriscool@tuxfamily.org>
Fri, 25 Jun 2010 02:16:24 +0000 (04:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Jun 2010 15:57:17 +0000 (08:57 -0700)
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>
Documentation/git-grep.txt

index 4b32322..912bddd 100644 (file)
@@ -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.