summaryrefslogtreecommitdiffstats
path: root/git-grep.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@kernel.org>2011-08-11 22:27:20 +0000
committerJunio C Hamano <junio@kernel.org>2011-08-11 22:27:20 +0000
commit9775d409cb92c4895a25daaf2928af720b90a933 (patch)
treeb908add7febc98712bfa761a46e550a27742cb61 /git-grep.html
parente1296e9af0b7e04013cdb44f4cac6d9d456719e7 (diff)
downloadgit-htmldocs-9775d409cb92c4895a25daaf2928af720b90a933.tar.gz
Autogenerated HTML docs for v1.7.6-447-gb9176
Diffstat (limited to 'git-grep.html')
-rw-r--r--git-grep.html62
1 files changed, 48 insertions, 14 deletions
diff --git a/git-grep.html b/git-grep.html
index 391649133..a51a127d2 100644
--- a/git-grep.html
+++ b/git-grep.html
@@ -721,37 +721,71 @@ grep.extendedRegexp
</p>
</dd>
<dt class="hdlist1">
--[ABC] &lt;context&gt;
+-p
+</dt>
+<dt class="hdlist1">
+--show-function
</dt>
<dd>
<p>
- Show <tt>context</tt> trailing (<tt>A</tt>&#8201;&#8212;&#8201;after), or leading (<tt>B</tt>
- &#8201;&#8212;&#8201;before), or both (<tt>C</tt>&#8201;&#8212;&#8201;context) lines, and place a
- line containing <tt>--</tt> between contiguous groups of
- matches.
+ Show the preceding line that contains the function name of
+ the match, unless the matching line is a function name itself.
+ The name is determined in the same way as <em>git diff</em> works out
+ patch hunk headers (see <em>Defining a custom hunk-header</em> in
+ <a href="gitattributes.html">gitattributes(5)</a>).
</p>
</dd>
<dt class="hdlist1">
-&lt;num&gt;
</dt>
+<dt class="hdlist1">
+-C &lt;num&gt;
+</dt>
+<dt class="hdlist1">
+--context &lt;num&gt;
+</dt>
<dd>
<p>
- A shortcut for specifying <tt>-C&lt;num&gt;</tt>.
+ Show &lt;num&gt; leading and trailing lines, and place a line
+ containing <tt>--</tt> between contiguous groups of matches.
</p>
</dd>
<dt class="hdlist1">
--p
+-A &lt;num&gt;
</dt>
<dt class="hdlist1">
---show-function
+--after-context &lt;num&gt;
</dt>
<dd>
<p>
- Show the preceding line that contains the function name of
- the match, unless the matching line is a function name itself.
- The name is determined in the same way as <em>git diff</em> works out
- patch hunk headers (see <em>Defining a custom hunk-header</em> in
- <a href="gitattributes.html">gitattributes(5)</a>).
+ Show &lt;num&gt; trailing lines, and place a line containing
+ <tt>--</tt> between contiguous groups of matches.
+</p>
+</dd>
+<dt class="hdlist1">
+-B &lt;num&gt;
+</dt>
+<dt class="hdlist1">
+--before-context &lt;num&gt;
+</dt>
+<dd>
+<p>
+ Show &lt;num&gt; leading lines, and place a line containing
+ <tt>--</tt> between contiguous groups of matches.
+</p>
+</dd>
+<dt class="hdlist1">
+-W
+</dt>
+<dt class="hdlist1">
+--function-context
+</dt>
+<dd>
+<p>
+ Show the surrounding text from the previous line containing a
+ function name up to the one before the next function name,
+ effectively showing the whole function in which the match was
+ found.
</p>
</dd>
<dt class="hdlist1">
@@ -882,7 +916,7 @@ grep.extendedRegexp
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2011-08-05 00:04:52 UTC
+Last updated 2011-08-11 22:26:57 UTC
</div>
</div>
</body>