@rs545837 I have thought a bit about this problem before. Consider taking all merge commits in a existing repos and run the tool on the inputs. If Git did not merge it cleanly and your tool did, see if your tool produces the same result as the human who committed did (can test per-hunk).
@leviska0@mattrickard Check out https://t.co/b8gnsKtMgf. It automatically snapshot the working copy so you will never be prevented from checking out a different commit. It's also compatible with git.