gitstats: Bugfix for diff.py, don't die on empty diffs
commit9ad70f8064a4e4e08bf8d62d962e2b9f088a8951
authorSverre Rabbelier <sverre@rabbelier.nl>
Sun, 20 Jul 2008 19:31:11 +0000 (20 21:31 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Sun, 20 Jul 2008 19:31:11 +0000 (20 21:31 +0200)
tree86869fa9db240f056e648ac965029a702e52d382
parentd31ae01f6d32550d0cfc039864ae7b4ef5ddc1e1
gitstats: Bugfix for diff.py, don't die on empty diffs

With the rewrite of the _splitFileDiff routine the default
was changed. The original behaviorwhen a diff with no hunks
was passed, was to 'eat' the entire content and return an
empty diff. This commit restores that behavior by setting
the size initially to the entire content.

Bug-introduced-in: 00a3c465c01e335317857e47f02fdeb93c79a052
src/git_stats/diff.py