c275ae26fd6d55c48debbd4907d655b7031bbf17
1 git-grep(1)
2 ===========
3 v0.99.6, Sep 2005
5 NAME
6 ----
7 git-grep - print lines matching a pattern
10 SYNOPSIS
11 --------
12 'git-grep' <option>... <pattern> <path>...
14 DESCRIPTION
15 -----------
16 Searches list of files `git-ls-files` produces for lines
17 containing a match to the given pattern.
20 OPTIONS
21 -------
22 <option>...::
23 Either an option to pass to `grep` or `git-ls-files`.
24 Some `grep` options, such as `-C` and `-m`, that take
25 parameters are known to `git-grep`.
27 <pattern>::
28 The pattern to look for.
30 <path>...::
32 Optional paths to limit the set of files to be searched;
33 passed to `git-ls-files`.
36 Author
37 ------
38 Written by Linus Torvalds <torvalds@osdl.org>
40 Documentation
41 --------------
42 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
44 GIT
45 ---
46 Part of the link:git.html[git] suite