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 git\-grep [<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\&.
44 The following are the specific `git\-ls\-files` options
45 that may be given: `\-o`, `\-\-cached`, `\-\-deleted`, `\-\-others`,
46 `\-\-killed`, `\-\-ignored`, `\-\-modified`, `\-\-exclude=*`,
47 `\-\-exclude\-from=*`, and `\-\-exclude\-per\-directory=*`\&.
51 All other options will be passed to `grep`\&.
56 The pattern to look for\&. The first non option is taken as the pattern; if your pattern begins with a dash, use \-e <pattern>\&.
60 Optional paths to limit the set of files to be searched; passed to git\-ls\-files\&.
65 Written by Linus Torvalds <torvalds@osdl\&.org>
70 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
75 Part of the \fBgit\fR(7) suite