Browse Source

Bugfix for line statistics.

Earlier this borked on author names containing "," (or example, wine
repository). Now it will instead check for line containing "files changed,".
Heikki Hokkanen 18 years ago
parent
commit
2b1cf3e22a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      gitstats

+ 1
- 1
gitstats View File

266
 				continue
266
 				continue
267
 
267
 
268
 			# <stamp> <author>
268
 			# <stamp> <author>
269
-			if line.find(',') == -1:
269
+			if line.find('files changed,') == -1:
270
 				pos = line.find(' ')
270
 				pos = line.find(' ')
271
 				(stamp, author) = (int(line[:pos]), line[pos+1:])
271
 				(stamp, author) = (int(line[:pos]), line[pos+1:])
272
 				self.changes_by_date[stamp] = { 'files': files, 'ins': inserted, 'del': deleted, 'lines': total_lines }
272
 				self.changes_by_date[stamp] = { 'files': files, 'ins': inserted, 'del': deleted, 'lines': total_lines }