]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-grep.txt
Undef DT_* before redefining them.
[thirdparty/git.git] / Documentation / git-grep.txt
CommitLineData
2aba319a
JH
1git-grep(1)
2===========
2aba319a
JH
3
4NAME
5----
6git-grep - print lines matching a pattern
7
8
9SYNOPSIS
10--------
353ce815 11'git-grep' [<option>...] <pattern> [<path>...]
2aba319a
JH
12
13DESCRIPTION
14-----------
15Searches list of files `git-ls-files` produces for lines
16containing a match to the given pattern.
17
18
19OPTIONS
20-------
21<option>...::
22 Either an option to pass to `grep` or `git-ls-files`.
23 Some `grep` options, such as `-C` and `-m`, that take
24 parameters are known to `git-grep`.
25
26<pattern>::
27 The pattern to look for.
28
29<path>...::
2aba319a
JH
30 Optional paths to limit the set of files to be searched;
31 passed to `git-ls-files`.
32
33
34Author
35------
36Written by Linus Torvalds <torvalds@osdl.org>
37
38Documentation
39--------------
40Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
41
42GIT
43---
a7154e91 44Part of the gitlink:git[7] suite
2aba319a 45