gitstats: Restructured the commit and diff module so that diff depends on commit
commite7394e86d3ae1855659c6d8433eb672090711674
authorSverre Rabbelier <sverre@rabbelier.nl>
Fri, 11 Jul 2008 13:02:12 +0000 (11 15:02 +0200)
committerSverre Rabbelier <sverre@rabbelier.nl>
Fri, 11 Jul 2008 13:02:12 +0000 (11 15:02 +0200)
tree62c6d519aafea6d9fe05f88508d42d8de4de5f5f
parent18370ad215ab367eb24640dbb4ac2fc6d2e91295
gitstats: Restructured the commit and diff module so that diff depends on commit

After finding a buggy 'getCommitDiff' in diff.py, while we
already have a very well functioning one in commit.py, it
made sense to make diff.py depend on commit.py. Previously
commit.py used one method from diff.py (being findReverts)
so that diff.py could not depend on commit.py (since that
would create a circular dependency). To fix this the
findReverts function was moved to diff.py (together with
'commit -v' => 'diff -r').
src/git_stats/commit.py
src/git_stats/diff.py