Examples (3)
Diff the changes of two individual commits
git range-diff commit_1^! commit_2^!Diff the changes of ours and theirs from their common ancestor, e.g. after an interactive rebase
git range-diff theirs...oursDiff the changes of two commit ranges, e.g. to check whether conflicts have been resolved appropriately when rebasing commits from `base1` to `base2`
git range-diff base1..rev1 base2..rev2made by @shridhargupta | data from tldr-pages