aboutsummaryrefslogtreecommitdiff
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorMark Lodato <lodatom@gmail.com>2010-02-25 22:40:13 -0500
committerJunio C Hamano <gitster@pobox.com>2010-02-25 22:41:44 -0800
commit2e48fcdbc45eeb95b3da1cf70787ddadf62d9bf5 (patch)
tree4271607c158d0f9825128f7ad748662607896064 /Documentation/git-grep.txt
parentec2537beda63f78746f8b43a031120be0d32310e (diff)
downloadgit-2e48fcdbc45eeb95b3da1cf70787ddadf62d9bf5.tar.gz
git-2e48fcdbc45eeb95b3da1cf70787ddadf62d9bf5.tar.xz
grep docs: document --no-index option
Also clarify --cached and <tree>. Signed-off-by: Mark Lodato <lodatom@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 37ce94305..ee506e67f 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -21,7 +21,7 @@ SYNOPSIS
[-A <post-context>] [-B <pre-context>] [-C <context>]
[-f <file>] [-e] <pattern>
[--and|--or|--not|(|)|-e <pattern>...]
- [--cached | <tree>...]
+ [--cached | --no-index | <tree>...]
[--] [<pathspec>...]
DESCRIPTION
@@ -33,8 +33,11 @@ registered in the index file, or blobs in given tree objects.
OPTIONS
-------
--cached::
- Instead of searching in the working tree files, check
- the blobs registered in the index file.
+ Instead of searching tracked files in the working tree, search
+ blobs registered in the index file.
+
+--no-index::
+ Search files in the current directory, not just those tracked by git.
-a::
--text::
@@ -164,7 +167,8 @@ OPTIONS
there is a match and with non-zero status when there isn't.
<tree>...::
- Search blobs in the trees for specified patterns.
+ Instead of searching tracked files in the working tree, search
+ blobs in the given trees.
\--::
Signals the end of options; the rest of the parameters