aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2010-06-25 04:16:24 +0200
committerJunio C Hamano <gitster@pobox.com>2010-06-25 08:57:17 -0700
commit8b6d7924f865f29e625d0fbd3e1307af30e51908 (patch)
tree4866c472638ec431b2078e42bc8e647517c6e09f /Documentation/git-grep.txt
parent4e0d7a80186c27f1a008dd10eaea6f25b0e1fe19 (diff)
downloadgit-8b6d7924f865f29e625d0fbd3e1307af30e51908.tar.gz
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 <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 4b32322a67..912bddd7b6 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -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.