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>
Mark Lodato committed
Feb 25, 2010 at 22:40 UTC
2e48fcdbc45eeb95b3da1cf70787ddadf62d9bf5
1 file changed
+8
-4
Documentation/git-grep.txt
+8
-4
@@ -21,7 +21,7 @@ SYNOPSIS
21
[-A <post-context>] [-B <pre-context>] [-C <context>]
22
[-f <file>] [-e] <pattern>
23
[--and|--or|--not|(|)|-e <pattern>...]
24
- [--cached | <tree>...]
24
+ [--cached | --no-index | <tree>...]
25
[--] [<pathspec>...]
26
27
DESCRIPTION
@@ -33,8 +33,11 @@ registered in the index file, or blobs in given tree objects.
33
OPTIONS
34
-------
35
--cached::
36
- Instead of searching in the working tree files, check
37
- the blobs registered in the index file.
36
+ Instead of searching tracked files in the working tree, search
37
+ blobs registered in the index file.
38
+
39
+--no-index::
40
+ Search files in the current directory, not just those tracked by git.
41
42
-a::
43
--text::
@@ -164,7 +167,8 @@ OPTIONS
167
there is a match and with non-zero status when there isn't.
168
169
<tree>...::
167
- Search blobs in the trees for specified patterns.
170
+ Instead of searching tracked files in the working tree, search
171
+ blobs in the given trees.
172
173
\--::
174
Signals the end of options; the rest of the parameters