Skip to content

Commit

Permalink
grep docs: document --no-index option
Browse files Browse the repository at this point in the history
Also clarify --cached and <tree>.

Signed-off-by: Mark Lodato <lodatom@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Mark Lodato authored and Junio C Hamano committed Feb 26, 2010
1 parent ec2537b commit 2e48fcd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Documentation/git-grep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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::
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2e48fcd

Please sign in to comment.