In a recent refactoring, I split file a.txt
into b.txt
and c.txt
in branch1
, and split it into c.txt
and d.txt
in branch2
. When diffing, Git interprets such a split as moving e.g. a.txt
to b.txt
(since they have more content in common) with changes, and adding c.txt
as a new file.
How can I git diff
files with different names from different commits? e.g. How can I diff these with each other?
b.txt
frombranch1
d.txt
frombranch2