Browse Source

Cleanup: whitespace changes & removed extra ';'.

Heikki Hokkanen 15 years ago
parent
commit
6283b0e5b0
1 changed files with 8 additions and 7 deletions
  1. 8
    7
      gitstats

+ 8
- 7
gitstats View File

450
 		self.total_lines = total_lines
450
 		self.total_lines = total_lines
451
 
451
 
452
 		# Per-author statistics
452
 		# Per-author statistics
453
+
454
+		# defined for stamp, author only if author commited at this timestamp.
453
 		self.changes_by_date_by_author = {} # stamp -> author -> lines_added
455
 		self.changes_by_date_by_author = {} # stamp -> author -> lines_added
454
-		                                    # defined for stamp, author only if
455
-		                                    # author commited at this timestamp.
456
+
456
 		# Similar to the above, but never use --first-parent
457
 		# Similar to the above, but never use --first-parent
457
-		# (we need to walk through every commits to know who
458
-		# commited what, not just through mainline)
458
+		# (we need to walk through every commit to know who
459
+		# committed what, not just through mainline)
459
 		lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%aN" %s' % (getcommitrange('HEAD'))]).split('\n')
460
 		lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%aN" %s' % (getcommitrange('HEAD'))]).split('\n')
460
 		lines.reverse()
461
 		lines.reverse()
461
-		files = 0; inserted = 0; deleted = 0; 
462
+		files = 0; inserted = 0; deleted = 0
462
 		author = None
463
 		author = None
463
 		for line in lines:
464
 		for line in lines:
464
 			if len(line) == 0:
465
 			if len(line) == 0:
888
 					commits_by_authors[author] = data.changes_by_date_by_author[stamp][author]['commits']
889
 					commits_by_authors[author] = data.changes_by_date_by_author[stamp][author]['commits']
889
 				fgl.write(' %d' % lines_by_authors[author])
890
 				fgl.write(' %d' % lines_by_authors[author])
890
 				fgc.write(' %d' % commits_by_authors[author])
891
 				fgc.write(' %d' % commits_by_authors[author])
891
-			fgl.write('\n');
892
-			fgc.write('\n');
892
+			fgl.write('\n')
893
+			fgc.write('\n')
893
 		fgl.close()
894
 		fgl.close()
894
 		fgc.close()
895
 		fgc.close()
895
 
896