aboutsummaryrefslogtreecommitdiff
path: root/tools/gen_authors.sh
blob: ed24634765753f11b56e9b25a59f0d00e451a00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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>

hg log --template='{author}\n' \
    | sort | uniq -c | sort -n -r \
    | sed -e 's/^ *[0-9]* /    /g'