title: Using JGit fetch() and check for updated files
body: <p>Using JGit, I've checked out a branch (<code>branch1</code>). After some time, I want to fetch() and see which files have been updated (in the origin) since my last fetch.</p>
  
  <pre class="lang-java prettyprint-override"><code>FetchResult fetchResult = m_git.fetch().setRefSpecs(new RefSpec("refs/heads/branch1")).call();
  
  // For example:
  fetchResult.getUpdatedFiles()
  </code></pre>
  
  <p>How do I do this?</p>