Compare two commit ranges (e.g. two versions of a branch). This command shows the differences between two versions of a patch series, or more generally, two commit ranges
Questions tagged [git-range-diff]
5 questions
2
votes
0 answers
Understand output of range-diff
I rebased my feature branch over master and want to verify that I resolved all merge conflicts correctly.
I'm using git range-diff for that purpose:
git range-diff --dual-color old-master..origin/my-branch new-master..my-branch
I've read the…

Simon Lenz
- 2,732
- 5
- 33
- 39
2
votes
1 answer
How to force `git range-diff` to display line numbers?
My git version is 2.28.0
When I did git range-diff HASH...HASH I get:
But how to force git range-diff to display lines, like usual diff/show does:
git show 4b8f08e8

Eugen Konkov
- 22,193
- 17
- 108
- 158
1
vote
0 answers
How to pretty format an arbitrary diff of diffs?
When rebasing a git branch, especially after conflicts resolution, I like comparing the two patches, i.e. the diff between the main branch and my branch before rebasing and the diff between the main branch and my branch after rebasing. The reason…

Robin Dos Anjos
- 309
- 2
- 11
1
vote
0 answers
Why `git range-diff` does not respect -w -b options?
When git displays diff, there are implemented -w -b options in many places which ignores space changes. But occasionally git diff-range does not implement them. Why?
It would be useful to hide space changes in many cases (as for usual diff). For…

Eugen Konkov
- 22,193
- 17
- 108
- 158
0
votes
1 answer
Why git range-diff does not show changes in commit?
I compare two ranges:
Why git range-diff does not show difference? when 3a8c and 2340 commits are different:

Eugen Konkov
- 22,193
- 17
- 108
- 158