title: List commits between 2 commit hashes in git
body: <p>I know there has been very similar questions here, but they didn't solve my problem.
  Perhaps there's something I'm not understanding well.</p>
  
  <p>This is a portion of the commit history of fitnesse (<a href="https://github.com/unclebob/fitnesse/" rel="noreferrer">https://github.com/unclebob/fitnesse/</a>):</p>
  
  <pre><code>* | | | | | | | | | | | | | | | fa86be8 Avoid possible issue when using CachingPage under heavy memory load.
  |/ / / / / / / / / / / / / / /  
  * | | | | | | | | | | | | | |   7b4a07a Merge pull request #256 from barredijkstra/fitnesse_issue_250
  |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \  
  | * | | | | | | | | | | | | | | ecf5891 Fixed test checking for OS specific exception message.
  | * | | | | | | | | | | | | | | 082236e Added rendering of cause exceptions. Fix for unclebob/fitnesse#250
  * | | | | | | | | | | | | | | |   a92b37f Merge pull request #243 from amolenaar/fix/243-hash-table-rendering
  </code></pre>
  
  <p>I want the list of commits between 2 commit hashes. In this particular case, I want the commits between <code>ecf5891</code> and <code>7b4a07a</code>, and I expect the result to be:</p>
  
  <pre><code>ecf5891
  7b4a07a
  </code></pre>
  
  <p>Si far I've been using <code>git rev-list commit_hash_from_here^..commit_hash_up_to_here</code> and it has worked fine with linear history. However, in this case I get a lot more commits.</p>
  
  <p>I've tried this and it works just as expected:</p>
  
  <pre><code>git log --since='&lt;date ecf5891&gt;' --until='&lt;date 7b4a07a&gt;'
  </code></pre>
  
  <p>(I've manually searched for those 2 dates).</p>
  
  <p>One possible solution is to get the 2 dates and just do that, but I think there should be a better way. </p>
  
  <p>Edit:
  <code>7b4a07a</code> parents are <code>ecf5891</code> and <code>a92b37f</code>. So far, the solutions work fine if I want to go from <code>ecf5891</code> to <code>7b4a07a</code>, but if I want to go from <code>a92b37f</code> to <code>7b4a07a</code> I want to get:</p>
  
  <pre><code>7b4a07a
  ecf5891
  082236e
  a92b37f
  </code></pre>
  
  <p>but I don't get <code>a92b37f</code></p>