diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-09-09 15:35:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-09-09 15:35:20 -0700 |
commit | 8eac268d5824abada1efa8990ea211f476ca942b (patch) | |
tree | 712e2b7c4f6bcacc8bacfed4d7ee98ed8aa484ce /git-annotate.html | |
parent | 91e3395c6964b309b071bf9fe79bd004c979b297 (diff) | |
download | git-htmldocs-8eac268d5824abada1efa8990ea211f476ca942b.tar.gz |
Autogenerated HTML docs for v1.8.4-242-gbb80ee
Diffstat (limited to 'git-annotate.html')
-rw-r--r-- | git-annotate.html | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/git-annotate.html b/git-annotate.html index ea212323c..363912d7b 100644 --- a/git-annotate.html +++ b/git-annotate.html @@ -800,10 +800,11 @@ familiar command name for people coming from other SCM systems.</p></div> </dt>
<dd>
<p>
- Annotate only the given line range. <start> and <end> are optional.
- “-L <start>” or “-L <start>,” spans from <start> to end of file.
- “-L ,<end>” spans from start of file to <end>.
+ Annotate only the given line range. May be specified multiple times.
+ Overlapping ranges are allowed.
</p>
+<div class="paragraph"><p><start> and <end> are optional. “-L <start>” or “-L <start>,” spans from
+<start> to end of file. “-L ,<end>” spans from start of file to <end>.</p></div>
<div class="paragraph"><p><start> and <end> can take one of these forms:</p></div>
<div class="ulist"><ul>
<li>
@@ -818,7 +819,10 @@ absolute line number (lines count from 1).</p></div> /regex/
</p>
<div class="paragraph"><p>This form will use the first line matching the given
-POSIX regex. If <end> is a regex, it will search
+POSIX regex. If <start> is a regex, it will search from the end of
+the previous <code>-L</code> range, if any, otherwise from the start of file.
+If <start> is “^/regex/”, it will search from the start of file.
+If <end> is a regex, it will search
starting at the line given by <start>.</p></div>
</li>
<li>
@@ -828,15 +832,12 @@ starting at the line given by <start>.</p></div> <div class="paragraph"><p>This is only valid for <end> and will specify a number
of lines before or after the line given by <start>.</p></div>
</li>
-<li>
-<p>
-:regex
-</p>
-<div class="paragraph"><p>If the option’s argument is of the form :regex, it denotes the range
-from the first funcname line that matches <regex>, up to the next
-funcname line.</p></div>
-</li>
</ul></div>
+<div class="paragraph"><p>If “:<regex>” is given in place of <start> and <end>, it denotes the range
+from the first funcname line that matches <regex>, up to the next
+funcname line. “:<regex>” searches from the end of the previous <code>-L</code> range,
+if any, otherwise from the start of file.
+“^:<regex>” searches from the start of file.</p></div>
</dd>
<dt class="hdlist1">
-l
|