Thomas Gummerer writes:
>> The point of this fix is not that we show the exact error message,
>> but we fail in a controlled manner. I think
>>
>> test_expect_success 'blame untracked file in empty repo' '
>>>untracked &&
>>test_must_fail
Since 3b75ee9 ("blame: allow to blame paths freshly added to the index",
2016-07-16) git blame also looks at the index to determine if there is a
file that was freshly added to the index.
cache_name_pos returns -pos - 1 in case there is no match is found, or
if the name matches, but the entry has
2 matches
Mail list logo