Say I create a hotfix branch off of a develop branch, make two commits, merge this back to the develop branch, and destroy the h
hotfix
develop
h
Say your merge commit is ab2f8173, git log ab2f8173^..ab2f8173 will show the commits which it merged in.
ab2f8173
git log ab2f8173^..ab2f8173
Here is how to turn this into a git alias for easy re-use:
git
$ git config --global alias.merge-log '!f() { git log --stat "$1^..$1"; }; f' $ git merge-log 0865c12