My repository history looks something like this:
x---y-+-z-+-branch / / / ---a---b---c-+-d-+-e---master
I want to get a
The command you are looking for is:
git diff master...branch
From git help diff:
git help diff
git diff [--options] ... This form is to view the changes on the branch containing and up to the second
git diff [--options] ...
This form is to view the changes on the branch containing and up to the second