From 1d30ffa7f490c12c0d33a667464774a0f8673f73 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Thu, 24 May 2012 00:56:19 +0200 Subject: [PATCH] The changes module now excludes commits without any valid FileDiff entries. --- changes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/changes.py b/changes.py index f837ff2..4e6bac7 100644 --- a/changes.py +++ b/changes.py @@ -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