title: Get Commit object by hexsha in git-python
body: <p>I'm trying to find the content of the commits that have been checked in between two specific commits.</p>
  
  <p>In git I'd do <code>git rev-list --ancestry-path &lt;older_commit_sha&gt;..&lt;newer_commit_sha&gt;</code>.</p>
  
  <p>In git-python, since it doesn't look there's a direct way of doing it, I resorted to calling the exact command, through <code>repo.git.execute()</code>.
  The output is a string of commit IDs (hex SHA).</p>
  
  <p>Now, is there a way in git-python to create a valid <code>Commit</code> object starting from the hex SHA as given by <code>execute()</code>?</p>