I am trying to find the diff between the current working tree and another branch (e.g. master) not including the merge commits.
. --a--> . --b--> . (master)
\ \
c \ (merge)
\ \
. ----- . --d--> . (current) --e--> (working tree)
Now, git diff master
does show the working tree changes, however it also shows changes in master not in current (-b, c, d, e). I want to see these changes not in master, that is, I want to see c, d and e.
I've tried using the triple-dot notation or using git log, but these compare against the tip (last commit):
git diff master...
git diff master...current_branch
git log -p --no-merges current..master
returns c and d, i.e. they don't include e: the working tree.
How can I get this diff to include the working tree?