gitstats: Check for empty diffs
commit63be2ca8ddd31e6dd2886e73b797dff0830acbd9
authorSverre Rabbelier <sverre@rabbelier.nl>
Fri, 11 Jul 2008 20:27:28 +0000 (11 22:27 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Fri, 11 Jul 2008 20:27:28 +0000 (11 22:27 +0200)
tree4031616be6d912ff73a8b7f683e495b43b69d463
parentf2a9f682849f0b843d4cc77c245607d0b0493f29
gitstats: Check for empty diffs

When a diff introduces no changes we need to check this
explicitly or the rest of the code will die because it
is missing data. This adds checks for that.
Also, when finding reverts, do not check for the commit
that we are checking for.
src/git_stats/diff.py