1
0
Fork 0
mirror of https://github.com/ejwa/gitinspector.git synced 2025-01-12 15:31:53 +01:00

The changes module now excludes commits without any valid FileDiff entries.

This commit is contained in:
Adam Waldenberg 2012-05-24 00:56:19 +02:00
parent 96e87ae457
commit 1d30ffa7f4

View file

@ -115,7 +115,9 @@ class Changes:
if authors.get(key, None) == None:
authors[key] = AuthorInfo()
authors[key].commits += 1
if commit.get_filediffs():
authors[key].commits += 1
for j in commit.get_filediffs():
authors[key].insertions += j.insertions
authors[key].deletions += j.deletions