From: Mark Lodato Date: Fri, 26 Feb 2010 03:40:13 +0000 (-0500) Subject: grep docs: document --no-index option X-Git-Tag: v1.7.0.3~24^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2e48fcdbc45eeb95b3da1cf70787ddadf62d9bf5;p=git.git grep docs: document --no-index option Also clarify --cached and . Signed-off-by: Mark Lodato Signed-off-by: Junio C Hamano --- 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 ] [-B ] [-C ] [-f ] [-e] [--and|--or|--not|(|)|-e ...] - [--cached | ...] + [--cached | --no-index | ...] [--] [...] 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. ...:: - 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