From 55e46db71bc8907bbd108dd3015410a861c1041e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bo=20=C3=98rsted=20Andresen?= Date: Wed, 23 Jun 2010 00:05:03 +0000 Subject: [PATCH] Respect .mailmap. Signed-off-by: Heikki Hokkanen --- gitstats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitstats b/gitstats index f382c77..a52b6fc 100755 --- a/gitstats +++ b/gitstats @@ -216,7 +216,7 @@ class GitDataCollector(DataCollector): (hash, tag) = line.split(' ') tag = tag.replace('refs/tags/', '') - output = getpipeoutput(['git log "%s" --pretty=format:"%%at %%an" -n 1' % hash]) + output = getpipeoutput(['git log "%s" --pretty=format:"%%at %%aN" -n 1' % hash]) if len(output) > 0: parts = output.split(' ') stamp = 0 @@ -400,7 +400,7 @@ class GitDataCollector(DataCollector): # N files changed, N insertions (+), N deletions(-) # self.changes_by_date = {} # stamp -> { files, ins, del } - lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%an" %s' % getcommitrange('HEAD')]).split('\n') + lines = getpipeoutput(['git log --shortstat --pretty=format:"%%at %%aN" %s' % getcommitrange('HEAD')]).split('\n') lines.reverse() files = 0; inserted = 0; deleted = 0; total_lines = 0 author = None