threads / patch / 24193

patch, 2 partsDocumentation: grep: fix asciidoc problem with --

Subject: [PATCH 2/2] Documentation: grep: fix asciidoc problem with --

## tl;dr

One message between Jun 25, 2010 and Jun 25, 2010. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Christian Couder· Jun 25, 2010, 02:16 UTC · lore

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>
---
 Documentation/git-grep.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Documentation/git-grep.txt +1 −1
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index d89ec32..5474dd7 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -191,7 +191,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.
 
-- 
1.7.1.642.gc3eb1

← back to recent threads