title: How to find the branch for a commit with JGit?
body: <p>I need to obtain the name of the branch that is associated with a specific commit using JGit. I used JGit to obtain the complete list of commit SHA's for a repository and now I need to know the name of the branch it belongs to.</p>
  
  <p>Appreciate if someone can let me know how I can achieve this.</p>