git-grep - Print lines matching a pattern
Look for specified patterns in the working tree files, blobs registered in the index file, or given tree objects.
Instead of searching in the working tree files, check the blobs registered in the index file.
Process binary files as if they were text.
Ignore case differences between the patterns and the files.
Match the pattern only at word boundary (either begin at the beginning of a line, or preceded by a non-word character; end at the end of a line or followed by a non-word character).
Select non-matching lines.
Use POSIX extended/basic regexp for patterns. Default is to use basic regexp.
Prefix the line number to matching lines.
Instead of showing every matched line, show only the names of files that contain (or do not contain) matches.
Instead of showing every matched line, show the number of lines that match.
Show context trailing (A — after), or leading (B — before), or both (C — context) lines, and place a line containing -- between contiguous groups of matches.
Read patterns from <file>, one per line.
Search blobs in the trees for specified patterns.
Signals the end of options; the rest of the parameters are <path> limiters.
Originally written by Linus Torvalds <torvalds@osdl.org>, later revamped by Junio C Hamano.
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
Part of the git(7) suite