rebase -i: move unlink() calls
commit36ac861a305720c54f759da814647d5987beb10b
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Wed, 6 Sep 2023 15:22:45 +0000 (6 15:22 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Sep 2023 17:29:43 +0000 (6 10:29 -0700)
tree8a93e24c119320668c2fbfd69fdec3f808aef89d
parent9c6990cca24301ae8f82bf6291049667a0aef14b
rebase -i: move unlink() calls

At the start of each iteration the loop that picks commits removes the
state files from the previous pick. However some of these files are only
written if there are conflicts in which case we exit the loop before the
end of the loop body. Therefore they only need to be removed when the
rebase continues, not at the start of each iteration.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sequencer.c