title: Difference between git show and git log when displaying commit ids
body: <p>I need to get list of commit ids between two known commits. I used the following command:</p>
  
  <pre><code>git show --format=format:%H --quiet commitA...commitB
  </code></pre>
  
  <p>It works flawlessly until there is a merge commit. I.e.:</p>
  
  <pre><code>*   c36a37b
  |\
  | * 92187d9
  * | e24d2c4
  |/
  * eef755e
  </code></pre>
  
  <p>The output is as follows:</p>
  
  <pre><code>$ git show --format=format:%H --quiet c36a37b...eef755e
  c36a37b80caf2bae7b4833617443f4dfea8d8816
  
  e24d2c4292baef4106976373ff3d01341834648d
  92187d9a1002027c7d99824f2561467692bfd6b3
  </code></pre>
  
  <p>When I change the <code>show</code> command and use <code>log</code> instead:</p>
  
  <pre><code>$ git log --format=format:%H --quiet c36a37b...eef755e
  c36a37b80caf2bae7b4833617443f4dfea8d8816
  e24d2c4292baef4106976373ff3d01341834648d
  92187d9a1002027c7d99824f2561467692bfd6b3
  </code></pre>
  
  <p>Notice there is no empty line after the first commit. I'm not fanatic about using <code>git show</code> over <code>git log</code> - I event don't remember where I got this idea from. But this extra empty line caused my program failure and I wonder if it has any special meaning.</p>
  
  <p>Git version 1.9.5.</p>