title: How can I see all the files that were modified/added/removed in the last push received?
body: <p>The command <code>git show --pretty="format:" --name-status bd61ad98</code> will show a list of all the files modified/added/deleted in the last commit where <code>bd61ad98</code> is the commit ID. The output looks like this:</p>
  
  <pre><code>[trusktr@rocketship express.git]$ git show --pretty="format:" --name-status bd61ad98
  
  A       test.txt
  D       test3.txt
  M       wp-atom.php
  </code></pre>
  
  <p>What about a command that shows the same information but for all the commits from the last push? FOr example, if a file was deleted (<code>D</code>), then re-added (<code>A</code>), then modified (<code>M</code>), the ideal status would be <code>M</code> for modified. In other words, the net effect is that the file was modified.</p>
  
  <p>Is there any such command? Even if the command were to list the duplicate statuses for files, that'd be fine. I could write a script that can determine the net effect.</p>
  
  <p>Perhaps there's a way to compare diffs and output a list of files modified/deleted/added?</p>
  
  <p>The reason I need such a file is that I'm making a script that will update another location using FTP based on this info.</p>