Git command to programatically add a range of lines of a file to the index?
<p>I want a command that would let me do something like:</p>

<pre><code>git manual-add some_file.txt 10..20
</code></pre>

<p>Which would be the equivalent of:</p>

<pre><code>git add -p some_file.txt
</code></pre>

<p>and saying <code>y</code> to only the hunk containing lines 10 through 20.</p>

<p>Is there an internal git command that would let me do this?  Is there <em>any</em> way it could be done?</p>