]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'pw/add-p-recount'
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 19:53:32 +0000 (12:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jun 2018 19:53:32 +0000 (12:53 -0700)
commit5eb8da850860839bdf38ab80079eb8875b764431
treea2156eaf3bd403dd7b1ac4e78412dba283fa78fa
parent0079732e960dc20ab2a68043d5593de358f1377f
parentf4d35a6b49621348c73222e7017a434551799308
Merge branch 'pw/add-p-recount'

When user edits the patch in "git add -p" and the user's editor is
set to strip trailing whitespaces indiscriminately, an empty line
that is unchanged in the patch would become completely empty
(instead of a line with a sole SP on it).  The code introduced in
Git 2.17 timeframe failed to parse such a patch, but now it learned
to notice the situation and cope with it.

* pw/add-p-recount:
  add -p: fix counting empty context lines in edited patches
git-add--interactive.perl
t/t3701-add-interactive.sh