When doing a merge with rerere enabled, and all conflicts are resolved with rerere, it just prints something like:
Resolved 'a.c' using previous resolution.
Resolved 'b.c' using previous resolution.
Resolved 'c.c' using previous resolution.
I would like to see the before diff (with conflict markers) and after resolution diff. I know I can do:
git checkout -m a.c
git diff
git rerere
git diff
git checkout -m b.c
git diff
git rerere
git diff
...
to kind of see the pre/post images it's using for each resolution. But is there some way to retrieve that information, or the rerere fingerprints used, without manually parsing the git merge hash
output for each Resolved X using previous resolution.
message.
It feels like you're looking to compare ours, theirs and resolution. From here it seems that
git diff
will refuse to compare 3 files. I've amended the example from that post to provide this example;The output from diff3 is more complicated but it's a complicated thing that you're doing.
Replication Steps
Initialise the repo.
Conduct the initial merge.
Store a resolution.
Merge again using rerere.autoupdate.
Traditional diff doesn't help.
diff3
can do it.