From: Dmitry Potapov Date: Mon, 8 Sep 2008 20:42:48 +0000 (+0400) Subject: git-rebase-interactive: do not squash commits on abort X-Git-Tag: v1.6.0.3~77^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8beb1f33d15af6cdb6bf7d8296fd73eb8df2f152?hp=8beb1f33d15af6cdb6bf7d8296fd73eb8df2f152 git-rebase-interactive: do not squash commits on abort If git rebase interactive is stopped by "edit" command and then the user said "git rebase --continue" while having some stage changes, git rebase interactive is trying to amend the last commit by doing: git --soft reset && git commit However, the user can abort commit for some reason by providing an empty log message, and that would leave the last commit undone, while the user being completely unaware about what happened. Now if the user tries to continue, by issuing "git rebase --continue" that squashes two previous commits. Signed-off-by: Dmitry Potapov Signed-off-by: Junio C Hamano ---