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>
This commit is contained in:

committed by
Junio C Hamano

parent
ec2537beda
commit
2e48fcdbc4
@ -21,7 +21,7 @@ SYNOPSIS
|
|||||||
[-A <post-context>] [-B <pre-context>] [-C <context>]
|
[-A <post-context>] [-B <pre-context>] [-C <context>]
|
||||||
[-f <file>] [-e] <pattern>
|
[-f <file>] [-e] <pattern>
|
||||||
[--and|--or|--not|(|)|-e <pattern>...]
|
[--and|--or|--not|(|)|-e <pattern>...]
|
||||||
[--cached | <tree>...]
|
[--cached | --no-index | <tree>...]
|
||||||
[--] [<pathspec>...]
|
[--] [<pathspec>...]
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
@ -33,8 +33,11 @@ registered in the index file, or blobs in given tree objects.
|
|||||||
OPTIONS
|
OPTIONS
|
||||||
-------
|
-------
|
||||||
--cached::
|
--cached::
|
||||||
Instead of searching in the working tree files, check
|
Instead of searching tracked files in the working tree, search
|
||||||
the blobs registered in the index file.
|
blobs registered in the index file.
|
||||||
|
|
||||||
|
--no-index::
|
||||||
|
Search files in the current directory, not just those tracked by git.
|
||||||
|
|
||||||
-a::
|
-a::
|
||||||
--text::
|
--text::
|
||||||
@ -164,7 +167,8 @@ OPTIONS
|
|||||||
there is a match and with non-zero status when there isn't.
|
there is a match and with non-zero status when there isn't.
|
||||||
|
|
||||||
<tree>...::
|
<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
|
||||||
|
Reference in New Issue
Block a user