Arnaud Lacombe [off-list ref] writes:
This commit introduces a regression when editing splithunks using "git
add -p". Reverting the patch fix the regression.
Thanks for a report. I don't have a time to look at this now; help from
"add -p" people would be appreciated.
I have a suspicion that the symptom may be a bug in "add -p" exposed by
the change; "add -p" which used to count the patch lines carefully itself,
but was modified to use 'apply --recount' in more recent versions.