aboutsummaryrefslogtreecommitdiff
path: root/tools/gen_authors.sh
blob: 4f69c76b7e21fb00a7bb95c16aedef82871133c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Generate a list of everyone who has contributed to the project merging those
# who commited under two names or email addresses.
# Original: https://github.com/Arora/arora/blob/master/generateAuthors
#
# To can pass an arg (which goes to git log)
#   Example: to see everyone who contributed between tag 0.6 and now
#   ./generateAuthors 0.6..HEAD
#
# Currently this is sorted based on # of commits, sorting contributions is not
# a simple topic as pointed out in this article http://lwn.net/Articles/222773/
#

# List of aliases
# Aqua, Aqua-sama <aqua@iserlohn-fortress.net>, Xian Nox, xiannox <xian.nox@gmail.com>

git log --pretty="format:%an %ae" $1 \
    | sed -e 's/Aqua /Aqua-sama /g'\
    | sed -e 's/Xian Nox xian\.nox@gmail\.com/Aqua-sama aqua@iserlohn-fortress\.net/g'\
    | sort | uniq -c | sort -n -r \
    | sed -e 's/^ *[0-9]* /    /g'