git-grep - Print lines matching a pattern
git-grep [<option>…] [-e] <pattern> [--] [<path>…]
Searches list of files git-ls-files produces for lines containing a match to the given pattern.
Signals the end of options; the rest of the parameters are <path> limiters.
Either an option to pass to grep or git-ls-files.
The following are the specific git-ls-files options that may be given: -o, --cached, --deleted, --others, --killed, --ignored, --modified, --exclude=*, --exclude-from=*, and --exclude-per-directory=*.
All other options will be passed to grep.
The pattern to look for. The first non option is taken as the pattern; if your pattern begins with a dash, use -e <pattern>.
Optional paths to limit the set of files to be searched; passed to git-ls-files.
Written by Linus Torvalds <torvalds@osdl.org>
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
Part of the git(7) suite