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 [<option>...] [\-e] <pattern> [\-\-] [<path>...]
31 Searches list of files git\-ls\-files produces for lines containing a match to the given pattern\&.
37 Signals the end of options; the rest of the parameters are <path> limiters\&.
41 Either an option to pass to grep or git\-ls\-files\&.
43 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=*\&.
45 All other options will be passed to grep\&.
49 The pattern to look for\&. The first non option is taken as the pattern; if your pattern begins with a dash, use \-e <pattern>\&.
53 Optional paths to limit the set of files to be searched; passed to git\-ls\-files\&.
58 Written by Linus Torvalds <torvalds@osdl\&.org>
63 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
68 Part of the \fBgit\fR(7) suite