I want to list all commits added to feature branch that are not on master. Something like a list of commits on github pull request page.
I've periodically pulled from master but also have some local merges (both sides belong to feature branch) since there were many people working in that branch so I can't exclude all merges or limit to first parent.
There are similar questions that suggest git log master..feature
but when I've tried that it also listed commits from master that were merged into feature. Adding --cherry
or changing to triple dot didn't help at all and the former breaks gitk.