NEW - bug 370152: Including Git commits with no changes in commit data is bogus
https://bugs.eclipse.org/bugs/show_bug.cgi?id=370152
diff --git a/commits/common/git-logcache.inc b/commits/common/git-logcache.inc
index c1ebc70..0daf6e3 100644
--- a/commits/common/git-logcache.inc
+++ b/commits/common/git-logcache.inc
@@ -28,10 +28,14 @@
}
function file($ref, $filename, $filetype, $size) {
+ $this->record['files'][] = $filename;
$this->record['size'] += $size;
}
function endCommit($ref) {
+ // Commits with no files don't count.
+ if (!isset($this->record['files'])) return;
+
$committer = $this->record['committer'];
$author = $this->record['author'];