Merge http://www.kernel.org/pub/scm/gitk/gitk
[git.git] / Documentation / git-grep.txt
1 git-grep(1)
2 ===========
3 v0.99.6, Sep 2005
4
5 NAME
6 ----
7 git-grep - print lines matching a pattern
8
9
10 SYNOPSIS
11 --------
12 'git-grep' <option>... <pattern> <path>...
13
14 DESCRIPTION
15 -----------
16 Searches list of files `git-ls-files` produces for lines
17 containing a match to the given pattern.
18
19
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`.
26
27 <pattern>::
28         The pattern to look for.
29
30 <path>...::
31
32         Optional paths to limit the set of files to be searched;
33         passed to `git-ls-files`.
34
35
36 Author
37 ------
38 Written by Linus Torvalds <torvalds@osdl.org>
39
40 Documentation
41 --------------
42 Documentation by Junio C Hamano and the git-list <git@vger.kernel.org>.
43
44 GIT
45 ---
46 Part of the gitlink:git[7] suite
47