Here's the recipe:
git log --pretty=format:"%h %ae %s" branch1 ^branch2
branch1
) say which branches' commits to include.^
(^branch2
) say which branches' commits to exclude. Beware some shells might need that quoted.%h
is the short commit hash.%ae
is the author's email address. (%an
would give the name.)%s
is the commit message (subject).git log --help
(actually, all this stuff is documented there).