Consider the following history:
         c-----f-----i-----l-----o-----p--- branch2
        /           /                   \
       /   e---h---k---n--- branch1      \
      /   /                               \
-a---b---d---g---j---m---------------------q---r--- master
The commit h (branch1) introduced certain changes to a piece of code. At some point in history after h, branch1 was merged into branch2. After a few more commits, branch2 was merged into master.
I want to find the merge commit that introduced the changes made in commit h to master branch (here merge commit q)?
I have the commit hash for h.
I tried the solutions given here: Find merge commit which include a specific commit , but they point to the first merge commit after the commit h which is i.
