diff options
-rwxr-xr-x | pkg/tools/get_authors.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/tools/get_authors.sh b/pkg/tools/get_authors.sh index 0169bb1..1759675 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 |