From 9b889f8789a77a1457e5cb5724aed908ba42af67 Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 31 May 2017 16:29:49 +0200 Subject: [docs] use mailmap to de-duplicate committers --- pkg/tools/get_authors.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'pkg/tools') diff --git a/pkg/tools/get_authors.sh b/pkg/tools/get_authors.sh index 0169bb17..1759675f 100755 --- a/pkg/tools/get_authors.sh +++ b/pkg/tools/get_authors.sh @@ -1,2 +1,11 @@ #!/bin/sh -git log --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d' ' -f2- +# +# To de-duplicate dontibutors who committed with different email addresses / names you can link +# ~/.mailmap to the .mailmap in the `secrets` repo. +# You need to tell git where to find it: +# +# git config --global mailmap.file ~/.mailmap +# +# After this just run `./get_authors.sh`. + +git log --use-mailmap --format='%aN <%aE>' | awk '{arr[$0]++} END{for (i in arr){print arr[i], i;}}' | sort -rn | cut -d' ' -f2- | sort -- cgit v1.2.3