The command git show --pretty="format:" --name-status bd61ad98
will show a list of all the files modified/added/deleted in the last commit where bd61ad98
is the commit ID. The output looks like this:
[trusktr@rocketship express.git]$ git show --pretty="format:" --name-status bd61ad98
A test.txt
D test3.txt
M wp-atom.php
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 (D
), then re-added (A
), then modified (M
), the ideal status would be M
for modified. In other words, the net effect is that the file was modified.
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.
Perhaps there's a way to compare diffs and output a list of files modified/deleted/added?
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.