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
If you have a merge commit (say a2345) and say git log -1 a2345, it will tell you the names of the parents (i.e. the commits which got merged in this commit). Is that what you're looking for?
a2345
git log -1 a2345