Autogenerated man pages for v1.2.4-g79f5
[git.git] / man1 / git-grep.1
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "GIT-GREP" 1 "" "" ""
21 .SH NAME
22 git-grep \- Print lines matching a pattern
23 .SH "SYNOPSIS"
24
25
26 \fIgit\-grep\fR [<option>...] [\-e] <pattern> [\-\-] [<path>...]
27
28 .SH "DESCRIPTION"
29
30
31 Searches list of files git\-ls\-files produces for lines containing a match to the given pattern\&.
32
33 .SH "OPTIONS"
34
35 .TP
36 \-\-
37 Signals the end of options; the rest of the parameters are <path> limiters\&.
38
39 .TP
40 <option>...
41 Either an option to pass to grep or git\-ls\-files\&.
42
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=*\&.
44
45 All other options will be passed to grep\&.
46
47 .TP
48 <pattern>
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>\&.
50
51 .TP
52 <path>...
53 Optional paths to limit the set of files to be searched; passed to git\-ls\-files\&.
54
55 .SH "AUTHOR"
56
57
58 Written by Linus Torvalds <torvalds@osdl\&.org>
59
60 .SH "DOCUMENTATION"
61
62
63 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
64
65 .SH "GIT"
66
67
68 Part of the \fBgit\fR(7) suite
69