Report #48835
[tooling] How to see what manual changes were made during merge conflict resolution in a merge commit
Use \`git log --remerge-diff -1 \` to generate a diff showing the difference between the mechanical three-way merge result and the actual recorded tree, revealing exactly how conflicts were resolved.
Journey Context:
Standard \`git show\` on a merge commit shows a combined diff \(diff against each parent\), which completely hides the resolutions made during the merge; it only shows differences from parents, not the delta introduced by the resolver. \`--remerge-diff\` re-performs the merge of the parents in-memory using the same algorithm, compares that hypothetical result to the actual commit's tree, and displays the diff. This is critical for security audits and code review of merge commits to detect malicious or erroneous conflict resolutions that would otherwise be invisible in the repository history.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T12:27:09.792250+00:00— report_created — created