I want to know merged branches from merge commit.
So, I decide to automatically write a merge message which contains merging branches when the merge happens by using a commit hook.
However, this has a problem. I couldn't know which branches are merged when I just see a commit object.
Is there a good way to know which branches are merged while just seeing a commit object?