aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorMatthias Lederhofer <matled@gmx.net>2006-06-25 18:07:15 +0200
committerJunio C Hamano <junkio@cox.net>2006-06-25 10:09:19 -0700
commit3acb27b6a4bd98dd58c1c17234b9b53ce0d78454 (patch)
treea2419a5fdb92769ec0d8c1f8bf24574030db8fc8 /Documentation/git-grep.txt
parent29f4ad867cd15f4029c280c417f4a0866d5229a9 (diff)
downloadgit-3acb27b6a4bd98dd58c1c17234b9b53ce0d78454.tar.gz
correct documentation for git grep
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 7b810dfda7..62a8e7f222 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -16,7 +16,7 @@ SYNOPSIS
[-n] [-l | --files-with-matches] [-L | --files-without-match]
[-c | --count]
[-A <post-context>] [-B <pre-context>] [-C <context>]
- [-f <file>] [-e <pattern>]
+ [-f <file>] [-e] <pattern>
[<tree>...]
[--] [<path>...]
@@ -71,6 +71,11 @@ OPTIONS
-f <file>::
Read patterns from <file>, one per line.
+-e::
+ The next parameter is the pattern. This option has to be
+ used for patterns starting with - and should be used in
+ scripts passing user input to grep.
+
`<tree>...`::
Search blobs in the trees for specified patterns.