Let's assume i have a git master branch and two feature branches on the same commit (feature1, feature2):
A1 -- A2 (master)
\
B1 -- B2 (feature1, feature2)
Now i rebase feature2 branch with changes from master:
A1 -- A2 -- A3 -- A4 -- A5 -- A6 (master)
\ \
B1 -- B2 (feature1) B1 -- B2 (feature2)
And do perhaps some refactorings (B2') and additional changes (B3) on feature2:
A1 -- A2 -- A3 -- A4 -- A5 -- A6 (master)
\ \
B1 -- B2 (feature1) B1 -- B2' -- B3 (feature2)
What i want to do is get the diff from only the contents of the two feature branches (and not the master branch) in order to see what was refactored and changed on the feature branch, not on master. I.e. i want to get the diff between B1 -- B2 and B1 -- B2' -- B3. I don't care for the changes that were pushed to master in the meantime. Is there a cmd command for that?