1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "GIT-GREP" 1 "" "" ""
22 git-grep \- Print lines matching a pattern
26 \fIgit\-grep\fR [\-\-cached]
27 [\-a | \-\-text] [\-I] [\-i | \-\-ignore\-case] [\-w | \-\-word\-regexp]
28 [\-v | \-\-invert\-match]
29 [\-E | \-\-extended\-regexp] [\-G | \-\-basic\-regexp] [\-F | \-\-fixed\-strings]
30 [\-n] [\-l | \-\-files\-with\-matches] [\-L | \-\-files\-without\-match]
32 [\-A <post\-context>] [\-B <pre\-context>] [\-C <context>]
33 [\-f <file>] [\-e <pattern>]
41 Look for specified patterns in the working tree files, blobs registered in the index file, or given tree objects\&.
47 Instead of searching in the working tree files, check the blobs registerd in the index file\&.
51 Process binary files as if they were text\&.
54 \-i | \-\-ignore\-case
55 Ignore case differences between the patterns and the files\&.
58 \-w | \-\-word\-regexp
59 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)\&.
62 \-v | \-\-invert\-match
63 Select non\-matching lines\&.
66 \-E | \-\-extended\-regexp | \-G | \-\-basic\-regexp
67 Use POSIX extended/basic regexp for patterns\&. Default is to use basic regexp\&.
71 Prefix the line number to matching lines\&.
74 \-l | \-\-files\-with\-matches | \-L | \-\-files\-without\-match
75 Instead of showing every matched line, show only the names of files that contain (or do not contain) matches\&.
79 Instead of showing every matched line, show the number of lines that match\&.
83 Show context trailing (A -- after), or leading (B -- before), or both (C -- context) lines, and place a line containing \-\- between continguous groups of matches\&.
87 Read patterns from <file>, one per line\&.
91 Search blobs in the trees for specified patterns\&.
95 Signals the end of options; the rest of the parameters are <path> limiters\&.
100 Originally written by Linus Torvalds <torvalds@osdl\&.org>, later revamped by Junio C Hamano\&.
105 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
110 Part of the \fBgit\fR(7) suite