Autogenerated man pages for 026351a03507dc3a2e89e068c01234dc55914df2
[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 git\-grep [<option>...] <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 <option>...
37 Either an option to pass to grep or git\-ls\-files\&. Some grep options, such as \-C and \-m, that take parameters are known to git\-grep\&.
38
39 .TP
40 <pattern>
41 The pattern to look for\&.
42
43 .TP
44 <path>...
45 Optional paths to limit the set of files to be searched; passed to git\-ls\-files\&.
46
47 .SH "AUTHOR"
48
49
50 Written by Linus Torvalds <torvalds@osdl\&.org>
51
52 .SH "DOCUMENTATION"
53
54
55 Documentation by Junio C Hamano and the git\-list <git@vger\&.kernel\&.org>\&.
56
57 .SH "GIT"
58
59
60 Part of the \fBgit\fR(7) suite
61