title: Is it possible to determine what branch the current branch is being merged into using the current and target branch commit hashes?
body: <p>Currently I have access to two commit hashes one being for the current branch and the other being the target branch. However, I am trying to get the name of the target branch to determine if the current branch is being merged into 'master' or 'main'.</p>
  <p>I have done some research already and tried working with <code>git branch --contains target_head_commit_hash</code> but my concern is that this may return multiple branches (excluding my own denoted with a '*') making it hard to know which one my branch is being merged into.</p>
  <p>All help is much appreciated and if you wish to write a small code snippet showcasing your solution I am working in Python :)</p>