X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-grep.txt;h=15d6711d46754e9659561b4372b46ec3c6654d6b;hb=b5c12797b442ddf4256332fe4baf709f90bb57a5;hp=e44a4988b7a7ed7100da6e2ba098d7fda17a2f83;hpb=411e6cf1971936ba31ffa142a6d5dc5c06dc8f7a;p=git.git diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index e44a4988b..15d6711d4 100644 --- a/Documentation/git-grep.txt +++ b/Documentation/git-grep.txt @@ -23,7 +23,7 @@ SYNOPSIS [-A ] [-B ] [-C ] [-f ] [-e] [--and|--or|--not|(|)|-e ...] - [--cached | --no-index | ...] + [ [--exclude-standard] [--cached | --no-index | --untracked] | ...] [--] [...] DESCRIPTION @@ -49,7 +49,20 @@ OPTIONS blobs registered in the index file. --no-index:: - Search files in the current directory, not just those tracked by git. + Search files in the current directory that is not managed by git. + +--untracked:: + In addition to searching in the tracked files in the working + tree, search also in untracked files. + +--no-exclude-standard:: + Also search in ignored files by not honoring the `.gitignore` + mechanism. Only useful with `--untracked`. + +--exclude-standard:: + Do not pay attention to ignored files specified via the `.gitignore` + mechanism. Only useful when searching files in the current directory + with `--no-index`. -a:: --text::