summaryrefslogtreecommitdiffstats
path: root/git-grep.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2010-03-07 22:25:17 +0000
committerJunio C Hamano <junio@kernel.org>2010-03-07 22:25:17 +0000
commit636c8b28164f489af6c6c6f328c2caad6aa3364e (patch)
treed5fc029cfb6350cdef7f814c27ab5c21c8abda7a /git-grep.html
parent118896be31402ffc2d506ee4172f0a69b28e26e5 (diff)
downloadgit-htmldocs-636c8b28164f489af6c6c6f328c2caad6aa3364e.tar.gz
Autogenerated HTML docs for v1.7.0.2-157-gb7e7f
Diffstat (limited to 'git-grep.html')
-rw-r--r--git-grep.html35
1 files changed, 22 insertions, 13 deletions
diff --git a/git-grep.html b/git-grep.html
index 624aaf6b7..261d4bd62 100644
--- a/git-grep.html
+++ b/git-grep.html
@@ -321,8 +321,7 @@ git-grep(1) Manual Page
<h2>SYNOPSIS</h2>
<div class="sectionbody">
<div class="verseblock">
-<div class="content"><em>git grep</em> [--cached]
- [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
+<div class="content"><em>git grep</em> [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
[-v | --invert-match] [-h|-H] [--full-name]
[-E | --extended-regexp] [-G | --basic-regexp]
[-F | --fixed-strings] [-n]
@@ -333,7 +332,8 @@ git-grep(1) Manual Page
[--color[=&lt;when&gt;] | --no-color]
[-A &lt;post-context&gt;] [-B &lt;pre-context&gt;] [-C &lt;context&gt;]
[-f &lt;file&gt;] [-e] &lt;pattern&gt;
- [--and|--or|--not|(|)|-e &lt;pattern&gt;&#8230;] [&lt;tree&gt;&#8230;]
+ [--and|--or|--not|(|)|-e &lt;pattern&gt;&#8230;]
+ [--cached | --no-index | &lt;tree&gt;&#8230;]
[--] [&lt;pathspec&gt;&#8230;]</div></div>
</div>
<h2 id="_description">DESCRIPTION</h2>
@@ -349,8 +349,16 @@ registered in the index file, or blobs in given tree objects.</p></div>
</dt>
<dd>
<p>
- Instead of searching in the working tree files, check
- the blobs registered in the index file.
+ Instead of searching tracked files in the working tree, search
+ blobs registered in the index file.
+</p>
+</dd>
+<dt>
+--no-index
+</dt>
+<dd>
+<p>
+ Search files in the current directory, not just those tracked by git.
</p>
</dd>
<dt>
@@ -500,8 +508,8 @@ registered in the index file, or blobs in given tree objects.</p></div>
<p>
Instead of showing every matched line, show only the
names of files that contain (or do not contain) matches.
- For better compatibility with <em>git diff</em>, --name-only is a
- synonym for --files-with-matches.
+ For better compatibility with <em>git diff</em>, <tt>--name-only</tt> is a
+ synonym for <tt>--files-with-matches</tt>.
</p>
</dd>
<dt>
@@ -563,7 +571,7 @@ registered in the index file, or blobs in given tree objects.</p></div>
</dt>
<dd>
<p>
- A shortcut for specifying -C&lt;num&gt;.
+ A shortcut for specifying <tt>-C&lt;num&gt;</tt>.
</p>
</dd>
<dt>
@@ -595,7 +603,7 @@ registered in the index file, or blobs in given tree objects.</p></div>
<dd>
<p>
The next parameter is the pattern. This option has to be
- used for patterns starting with - and should be used in
+ used for patterns starting with <tt>-</tt> and should be used in
scripts passing user input to grep. Multiple patterns are
combined by <em>or</em>.
</p>
@@ -643,11 +651,12 @@ registered in the index file, or blobs in given tree objects.</p></div>
</p>
</dd>
<dt>
-<tt>&lt;tree&gt;&#8230;</tt>
+&lt;tree&gt;&#8230;
</dt>
<dd>
<p>
- Search blobs in the trees for specified patterns.
+ Instead of searching tracked files in the working tree, search
+ blobs in the given trees.
</p>
</dd>
<dt>
@@ -670,7 +679,7 @@ registered in the index file, or blobs in given tree objects.</p></div>
</dd>
</dl></div>
</div>
-<h2 id="_example">Example</h2>
+<h2 id="_examples">Examples</h2>
<div class="sectionbody">
<div class="vlist"><dl>
<dt>
@@ -717,7 +726,7 @@ revamped by Junio C Hamano.</p></div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2010-03-03 05:12:41 UTC
+Last updated 2010-03-07 22:24:59 UTC
</div>
</div>
</body>