Kaynağa Gözat

Fix total lines for multi-repository stats.

Make general stats total LOC show the total aggregate from all projects,
instead of the total LOC from last project.

[hoxu@users.sf.net: rewrote the commit message]

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Ernesto Jiménez 13 yıl önce
ebeveyn
işleme
aa77a8915f
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1
    1
      gitstats

+ 1
- 1
gitstats Dosyayı Görüntüle

@@ -517,7 +517,7 @@ class GitDataCollector(DataCollector):
517 517
 					print 'Warning: failed to handle line "%s"' % line
518 518
 					(files, inserted, deleted) = (0, 0, 0)
519 519
 				#self.changes_by_date[stamp] = { 'files': files, 'ins': inserted, 'del': deleted }
520
-		self.total_lines = total_lines
520
+		self.total_lines += total_lines
521 521
 
522 522
 		# Per-author statistics
523 523