summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2017-05-31 16:29:49 +0200
committerKali Kaneko (leap communications) <kali@leap.se>2017-05-31 17:13:01 +0200
commit9b889f8789a77a1457e5cb5724aed908ba42af67 (patch)
tree345fd03c3ce49c072d68c143ec060d20eb1718c0
parent661cd2793f3c3dfa6efe3b1a99d89ba5f39bd82b (diff)
[docs] use mailmap to de-duplicate committers
-rwxr-xr-xpkg/tools/get_authors.sh11
1 files changed, 10 insertions, 1 deletions
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