gitstats: Bugfix for commitdiffMatches
commit99219b4da0b35d82ebd50dc3936ae3908a6187de
authorSverre Rabbelier <sverre@rabbelier.nl>
Wed, 11 Jun 2008 19:04:23 +0000 (11 21:04 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Thu, 12 Jun 2008 11:26:33 +0000 (12 13:26 +0200)
treec36b2bfa33abf893370d457cbb9f03d547ba02ba
parent0b9923158f7a2a76d93ebbff4a97654d8246c7b0
gitstats: Bugfix for commitdiffMatches

When retreiving the log, the -U0 option was not passed,
which caused the lines around the change to be matches on
too. As a result, a commit was also marked as 'matching' if
it made a change near a matching line.
Not only that, but there was no check in place to check for
the commits without parents either.
Finally, the biggest error was that instead of setting the
'addIt' variable to False, the 'addit' variable was set,
which is not used, and so all commits matched.

Bug-introduced-in: 56a92410fe3977528673af70f42371bf76e9cab5
src/git_stats/commit.py
src/t/t8100-stats.sh