ing the origin for
lines 40-60 for file <code>foo</code>, you can use the <code>-L</code> option like so
(they mean the same thing&#8201;&#8212;&#8201;both ask for 21 lines starting at
line 40):</p>
</div>
<div class="literalblock">
<div class="content">
<pre>git blame -L 40,60 foo
git blame -L 40,+21 foo</pre>
</div>
</div>
<div class="paragraph">
<p>Also you can use a regular expression to specify the line range:</p>
</div>
<div class="literalblock">
<div class="content">
<pre>git blame -L '/^sub hello {/