Merge branch 'en/merge-restore-to-pristine'
commit966ff64a3042f879bca83e2376128cf5f39737a7
authorJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2022 20:36:09 +0000 (3 13:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2022 20:36:09 +0000 (3 13:36 -0700)
tree9e03fa16df286180840c091d9b1de725122f09b1
parent4e0d160bbc88c3486ff7ccae179e4730aab5dd28
parentc23fc075c6b9601e0fe7f4c8e5399a6f0cbff13e
Merge branch 'en/merge-restore-to-pristine'

When "git merge" finds that it cannot perform a merge, it should
restore the working tree to the state before the command was
initiated, but in some corner cases it didn't.

* en/merge-restore-to-pristine:
  merge: do not exit restore_state() prematurely
  merge: ensure we can actually restore pre-merge state
  merge: make restore_state() restore staged state too
  merge: fix save_state() to work when there are stat-dirty files
  merge: do not abort early if one strategy fails to handle the merge
  merge: abort if index does not match HEAD for trivial merges
  merge-resolve: abort if index does not match HEAD
  merge-ort-wrappers: make printed message match the one from recursive