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.txtfrombranch1d.txtfrombranch2
git diff -M3givegitenough hints to follow moves?git diff branch1:b.txt branch2:d.txtin my example. (Except the linked answer doesn't specify both branches, as does the one it links to.) Thanks!