summaryrefslogtreecommitdiffstats
path: root/git-grep.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2006-05-16 02:14:21 +0000
committerJunio C Hamano <junio@hera.kernel.org>2006-05-16 02:14:21 +0000
commit617fdb88b05107e6673f6aafb280c1ef27acae7b (patch)
tree0e444c880fdfa2ca2be0e6fc32d54d313b743454 /git-grep.html
parent0fd4dbd5f31a6526f88cc4613296a5603a193929 (diff)
downloadgit-htmldocs-617fdb88b05107e6673f6aafb280c1ef27acae7b.tar.gz
Autogenerated HTML docs for v1.3.3-g8701
Diffstat (limited to 'git-grep.html')
-rw-r--r--git-grep.html129
1 files changed, 107 insertions, 22 deletions
diff --git a/git-grep.html b/git-grep.html
index 11f2f7e7b..411e99531 100644
--- a/git-grep.html
+++ b/git-grep.html
@@ -272,62 +272,147 @@ git-grep(1) Manual Page
</div>
<h2>SYNOPSIS</h2>
<div class="sectionbody">
-<p><em>git-grep</em> [&lt;option&gt;&#8230;] [-e] &lt;pattern&gt; [--] [&lt;path&gt;&#8230;]</p>
+<div class="verseblock">
+<div class="content"><em>git-grep</em> [--cached]
+ [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
+ [-v | --invert-match]
+ [-E | --extended-regexp] [-G | --basic-regexp] [-F | --fixed-strings]
+ [-n] [-l | --files-with-matches] [-L | --files-without-match]
+ [-c | --count]
+ [-A &lt;post-context&gt;] [-B &lt;pre-context&gt;] [-C &lt;context&gt;]
+ [-f &lt;file&gt;] [-e &lt;pattern&gt;]
+ [&lt;tree&gt;&#8230;]
+ [--] [&lt;path&gt;&#8230;]</div></div>
</div>
<h2>DESCRIPTION</h2>
<div class="sectionbody">
-<p>Searches list of files <tt>git-ls-files</tt> produces for lines
-containing a match to the given pattern.</p>
+<p>Look for specified patterns in the working tree files, blobs
+registered in the index file, or given tree objects.</p>
</div>
<h2>OPTIONS</h2>
<div class="sectionbody">
<dl>
<dt>
-<tt>--</tt>
+--cached
</dt>
<dd>
<p>
- Signals the end of options; the rest of the parameters
- are &lt;path&gt; limiters.
+ Instead of searching in the working tree files, check
+ the blobs registerd in the index file.
+</p>
+</dd>
+<dt>
+-a | --text
+</dt>
+<dd>
+<p>
+ Process binary files as if they were text.
+</p>
+</dd>
+<dt>
+-i | --ignore-case
+</dt>
+<dd>
+<p>
+ Ignore case differences between the patterns and the
+ files.
+</p>
+</dd>
+<dt>
+-w | --word-regexp
+</dt>
+<dd>
+<p>
+ Match the pattern only at word boundary (either begin at the
+ beginning of a line, or preceded by a non-word character; end at
+ the end of a line or followed by a non-word character).
+</p>
+</dd>
+<dt>
+-v | --invert-match
+</dt>
+<dd>
+<p>
+ Select non-matching lines.
+</p>
+</dd>
+<dt>
+-E | --extended-regexp | -G | --basic-regexp
+</dt>
+<dd>
+<p>
+ Use POSIX extended/basic regexp for patterns. Default
+ is to use basic regexp.
+</p>
+</dd>
+<dt>
+-n
+</dt>
+<dd>
+<p>
+ Prefix the line number to matching lines.
+</p>
+</dd>
+<dt>
+-l | --files-with-matches | -L | --files-without-match
+</dt>
+<dd>
+<p>
+ Instead of showing every matched line, show only the
+ names of files that contain (or do not contain) matches.
</p>
</dd>
<dt>
-&lt;option&gt;&#8230;
+-c | --count
</dt>
<dd>
<p>
- Either an option to pass to <tt>grep</tt> or <tt>git-ls-files</tt>.
+ Instead of showing every matched line, show the number of
+ lines that match.
</p>
-<p>The following are the specific <tt>git-ls-files</tt> options
-that may be given: <tt>-o</tt>, <tt>--cached</tt>, <tt>--deleted</tt>, <tt>--others</tt>,
-<tt>--killed</tt>, <tt>--ignored</tt>, <tt>--modified</tt>, <tt>--exclude=*</tt>,
-<tt>--exclude-from=*</tt>, and <tt>--exclude-per-directory=*</tt>.</p>
-<p>All other options will be passed to <tt>grep</tt>.</p>
</dd>
<dt>
-&lt;pattern&gt;
+-[ABC] &lt;context&gt;
</dt>
<dd>
<p>
- The pattern to look for. The first non option is taken
- as the pattern; if your pattern begins with a dash, use
- <tt>-e &lt;pattern&gt;</tt>.
+ Show <tt>context</tt> trailing (<tt>A</tt> &#8212; after), or leading (<tt>B</tt>
+ &#8212; before), or both (<tt>C</tt> &#8212; context) lines, and place a
+ line containing <tt>--</tt> between continguous groups of
+ matches.
</p>
</dd>
<dt>
-&lt;path&gt;&#8230;
+-f &lt;file&gt;
</dt>
<dd>
<p>
- Optional paths to limit the set of files to be searched;
- passed to <tt>git-ls-files</tt>.
+ Read patterns from &lt;file&gt;, one per line.
+</p>
+</dd>
+<dt>
+<tt>&lt;tree&gt;&#8230;</tt>
+</dt>
+<dd>
+<p>
+ Search blobs in the trees for specified patterns.
+</p>
+</dd>
+<dt>
+<tt>--</tt>
+</dt>
+<dd>
+<p>
+ Signals the end of options; the rest of the parameters
+ are &lt;path&gt; limiters.
</p>
</dd>
</dl>
</div>
<h2>Author</h2>
<div class="sectionbody">
-<p>Written by Linus Torvalds &lt;torvalds@osdl.org&gt;</p>
+<p>Originally written by Linus Torvalds &lt;torvalds@osdl.org&gt;, later
+revamped by Junio C Hamano.</p>
</div>
<h2>Documentation</h2>
<div class="sectionbody">
@@ -339,7 +424,7 @@ that may be given: <tt>-o</tt>, <tt>--cached</tt>, <tt>--deleted</tt>, <tt>--oth
</div>
<div id="footer">
<div id="footer-text">
-Last updated 24-Mar-2006 08:11:01 UTC
+Last updated 16-May-2006 02:14:10 UTC
</div>
</div>
</body>