Browse Source

Respect .mailmap.

Signed-off-by: Heikki Hokkanen <hoxu@users.sf.net>
Bo Ørsted Andresen 15 years ago
parent
commit
55e46db71b
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      gitstats

+ 2
- 2
gitstats View File

@@ -216,7 +216,7 @@ class GitDataCollector(DataCollector):
216 216
 			(hash, tag) = line.split(' ')
217 217
 
218 218
 			tag = tag.replace('refs/tags/', '')
219
-			output = getpipeoutput(['git log "%s" --pretty=format:"%%at %%an" -n 1' % hash])
219
+			output = getpipeoutput(['git log "%s" --pretty=format:"%%at %%aN" -n 1' % hash])
220 220
 			if len(output) > 0:
221 221
 				parts = output.split(' ')
222 222
 				stamp = 0
@@ -400,7 +400,7 @@ class GitDataCollector(DataCollector):
400 400
 		#  N files changed, N insertions (+), N deletions(-)
401 401
 		# <stamp> <author>
402 402
 		self.changes_by_date = {} # stamp -> { files, ins, del }
403
-		lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%an" %s' % getcommitrange('HEAD')]).split('\n')
403
+		lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%aN" %s' % getcommitrange('HEAD')]).split('\n')
404 404
 		lines.reverse()
405 405
 		files = 0; inserted = 0; deleted = 0; total_lines = 0
406 406
 		author = None