gitstats: Bugfix for diff -i, also removed debug output
commit37dce5968c6ca565c3c7492a58adab75145b2add
authorSverre Rabbelier <sverre@rabbelier.nl>
Fri, 13 Jun 2008 10:19:10 +0000 (13 12:19 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Fri, 13 Jun 2008 11:49:57 +0000 (13 13:49 +0200)
tree802c2cac1b9e326c09f3304ceb82c11bec5fa238
parent14f8201b604306c791b126db581d956dcf1df81f
gitstats: Bugfix for diff -i, also removed debug output

The -i switch inverts the comparison between lines removed
and lines added so that the lines removed are compared with
the lines deleted and vise versa. In the initial
implementation the content comparison was switched properly
but the line comparison was not, so that the proper matches
were never found.
The initial implementation also contained some debug output
which was never removed, this fixes that too.

Bug-introduced-in: bc9d1040f323a0b09674f0a1c6ec7048e31580ab
src/git_stats/diff.py
src/t/t8100-stats.sh