X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-grep.txt;h=4b32322a67d9f3de8b555d3d9d03e7ddab14e0a7;hb=60dafdd37d7df358b6ff67b317dbe738b50ea6d6;hp=37ce94305bdc1b41fef7f24c7e5a274f39df1ba2;hpb=ec2537beda63f78746f8b43a031120be0d32310e;p=git.git diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index 37ce94305..4b32322a6 100644 --- a/Documentation/git-grep.txt +++ b/Documentation/git-grep.txt @@ -17,11 +17,11 @@ SYNOPSIS [-z | --null] [-c | --count] [--all-match] [-q | --quiet] [--max-depth ] - [--color | --no-color] + [--color[=] | --no-color] [-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:: @@ -111,12 +114,14 @@ OPTIONS Instead of showing every matched line, show the number of lines that match. ---color:: +--color[=]:: Show colored matches. + The value must be always (the default), never, or auto. --no-color:: Turn off match highlighting, even when the configuration file gives the default to color output. + Same as `--color=never`. -[ABC] :: Show `context` trailing (`A` -- after), or leading (`B` @@ -164,7 +169,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