Autogenerated man pages for v1.2.4-gf61c2
[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 .nf
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=*`\&.
48 .fi
49
50 .nf
51 All other options will be passed to `grep`\&.
52 .fi
53
54 .TP
55 <pattern>
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>\&.
57
58 .TP
59 <path>...
60 Optional paths to limit the set of files to be searched; passed to git\-ls\-files\&.
61
62 .SH "AUTHOR"
63
64
65 Written by Linus Torvalds <torvalds@osdl\&.org>
66
67 .SH "DOCUMENTATION"
68
69
70 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
71
72 .SH "GIT"
73
74
75 Part of the \fBgit\fR(7) suite
76