title: How is a merge-base done in JGit?
body: <p>I'm looking at the <a href="http://www.eclipse.org/jgit/documentation/" rel="nofollow noreferrer">JGit Documentation</a>, currently at version <em>3.5.1.201410131835-r</em>, and I cannot find the equivalent of <a href="http://git-scm.com/docs/git-merge-base" rel="nofollow noreferrer">git-merge-base</a>.</p>
  
  <p>I would like to determine if a branch is up-to-date, behind, ahead, or diverged, as shown in <a href="https://stackoverflow.com/a/3278427/231573">git: check if pull needed</a>.</p>
  
  <p>What is the most concise way in JGit to find as good common ancestors as possible for a merge?</p>