I am running git blame -L with multiple -L options in order to get line information for non-sequential lines in a single git call.
I believed that this call:
git blame -L38,38 -L40,40 <file>
should be equivalent to the these 2 calls made separately
git blame -L38,38 <file>
git blame -L40,40 <file>
However, I ran across one case where using multiple -L options actually returned lines 38 and 39 rather than then expected lines 38 and 40:
$ git blame -L38,38 -L40,40 <file>
b6543ffe (Some Body 2015-11-24 15:15:03 -0500 38) SOME CODE
b6543ffe (Some Body 2015-11-24 15:15:03 -0500 39) SOME OTHER CODE
When I only have a single -L40,40 then git actually returns line 40 correctly:
$ git blame -L40,40 <file>
b6543ffe259 (Some Body 2015-11-24 15:15:03 -0500 40) SOME CODE
Is there something I'm missing about how -L actually works or is this a git bug?
I tried using both git version 2.7.0.windows.1 and 2.11.0.windows.1.