summaryrefslogtreecommitdiffstats
path: root/git-blame.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2006-11-09 18:45:32 +0000
committerJunio C Hamano <junio@hera.kernel.org>2006-11-09 18:45:32 +0000
commit4a345d261b8ece27011e571baf6dcfd0ab6921fb (patch)
tree1a6a16f0944ae9754334f9539ebe2084e08f1696 /git-blame.html
parente1aa7476a40f0b9c883804792ec811b7e8790f7c (diff)
downloadgit-htmldocs-4a345d261b8ece27011e571baf6dcfd0ab6921fb.tar.gz
Autogenerated HTML docs for v1.4.4-rc1-g18d54
Diffstat (limited to 'git-blame.html')
-rw-r--r--git-blame.html13
1 files changed, 8 insertions, 5 deletions
diff --git a/git-blame.html b/git-blame.html
index 7ab2937e4..75cd35590 100644
--- a/git-blame.html
+++ b/git-blame.html
@@ -312,10 +312,7 @@ ea4c7f9bf69e781dd0cd88d2bccb2bf5cc15c9a7 git-blame: Make the output</tt></pre>
</dt>
<dd>
<p>
- Annotate only the specified line range (lines count from
- 1). The range can be specified with a regexp. For
- example, <tt>-L <em>/<sup>sub esc_html /,/</sup>}$/</em></tt> limits the
- annotation only to the body of <tt>esc_html</tt> subroutine.
+ Annotate only the specified line range (lines count from 1).
</p>
</dd>
<dt>
@@ -469,6 +466,12 @@ ll. 40-60 for file <tt>foo</tt>, you can use <tt>-L</tt> option like this:</p>
<div class="content">
<pre><tt>git blame -L 40,60 foo</tt></pre>
</div></div>
+<p>Also you can use regular expression to specify the line range.</p>
+<div class="literalblock">
+<div class="content">
+<pre><tt>git blame -L '/^sub hello {/,/^}$/' foo</tt></pre>
+</div></div>
+<p>would limit the annotation to the body of <tt>hello</tt> subroutine.</p>
<p>When you are not interested in changes older than the version
v2.6.18, or changes older than 3 weeks, you can use revision
range specifiers similar to <tt>git-rev-list</tt>:</p>
@@ -512,7 +515,7 @@ parents, using <tt>commit^!</tt> notation:</p>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 09-Nov-2006 07:37:40 UTC
+Last updated 09-Nov-2006 18:45:28 UTC
</div>
</div>
</body>