Bugfix for diff.py, don't die on empty diffs
commite201bb0073a7d69a0e82e857cf12d2d01e53e094
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)
treeac9adb543bcddd48b775ca6776a5405692190d20
parentb3c00a43b96b66de599082c09d6b1474db3b7a92
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