@matheusbsbs / matheus-bagliano / commits / 2aba319a52
Fork 0

Document git-grep and link it from the main git(7) page.

Also adjust missing description in the git.txt page while we are at it. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Sep 12, 2005 at 19:39 UTC 2aba319a52b3601cff3f32b60bc28023ee45575d
3 files changed +54 -3
.gitignore
+1
@@ -31,6 +31,7 @@ git-fetch-pack
31 git-format-patch
32 git-fsck-objects
33 git-get-tar-commit-id
34 +git-grep
35 git-hash-object
36 git-http-fetch
37 git-init-db
Documentation/git-grep.txt new
+47
@@ -0,0 +1,47 @@
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 link:git.html[git] suite
47 +
Documentation/git.txt
+6 -3
@@ -1,6 +1,6 @@
1 git(7)
2 ======
3 -v0.99.5, Aug 2005
3 +v0.99.6, Sep 2005
4
5 NAME
6 ----
@@ -238,7 +238,7 @@ link:git-commit.html[git-commit]::
238 Previously this command was known as git-commit-script.
239
240 link:git-diff.html[git-diff]::
241 - git-diff.
241 + Show changes between commits, commit and working tree, etc.
242 Previously this command was known as git-diff-script.
243
244 link:git-fetch.html[git-fetch]::
@@ -246,9 +246,12 @@ link:git-fetch.html[git-fetch]::
246 Previously this command was known as git-fetch-script.
247
248 link:git-format-patch.html[git-format-patch]::
249 - git-format-patch.
249 + Prepare patches for e-mail submission.
250 Previously this command was known as git-format-patch-script.
251
252 +link:git-grep.html[git-grep]::
253 + Print lines matching a pattern
254 +
255 link:git-log.html[git-log]::
256 Shows commit logs.
257 Previously this command was known as git-log-script.