Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
grep docs: document --no-index option
author
Mark Lodato
<lodatom@gmail.com>
Fri, 26 Feb 2010 03:40:13 +0000
(22:40 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 26 Feb 2010 06:41:44 +0000
(22:41 -0800)
Also clarify --cached and <tree>.
Signed-off-by: Mark Lodato <lodatom@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-grep.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
ec2537b
)
diff --git
a/Documentation/git-grep.txt
b/Documentation/git-grep.txt
index 37ce94305bdc1b41fef7f24c7e5a274f39df1ba2..ee506e67f09034591b4cd0215f72f61ff607d128 100644
(file)
--- 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>...]
[-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
[--] [<pathspec>...]
DESCRIPTION
@@
-33,8
+33,11
@@
registered in the index file, or blobs in given tree objects.
OPTIONS
-------
--cached::
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::
-a::
--text::
@@
-164,7
+167,8
@@
OPTIONS
there is a match and with non-zero status when there isn't.
<tree>...::
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
\--::
Signals the end of options; the rest of the parameters