When you rebase a branch and someone asks "what changed between v1 and v2 of your PR?" — that's a range diff.
git range-diff main..feature-v1 main..feature-v2 compares two ranges of commits, matching them up by patch similarity.
Output shows:
- Commits that match in both (
=)
- Commits modified between versions (
!)
- Commits dropped (
-)
- Commits added (
+)
This is the right tool for reviewing a force-pushed PR. It's also how the kernel maintainers review patch series resubmissions.
Many GitHub PR reviewers don't know this exists — using it makes you 10× faster at reviewing rebased work.