-
Notifications
You must be signed in to change notification settings - Fork 5
/
generateAuthors
executable file
·28 lines (28 loc) · 1.39 KB
/
generateAuthors
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
#
# Generate a list of everyone who has contributed to the project merging those who commited under two names or email addresses.
#
# 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/
#
git log --pretty="format:%an %ae" $1 \
| sed -e 's/smart2128 /Vincenzo Reale /g' \
| sed -e 's/buster\.xtense\.dyndns\.org/ts2server\.com/g' \
| sed -e 's/^cfchris6 /Christian Franke /g' \
| sed -e 's/^faw /Jakub Wieczorek /g' \
| sed -e 's/^LEW21 /Janusz Lewandowski /g' \
| sed -e 's/lew21@pecet.(none)$/[email protected]/g' \
| sed -e 's/adam\.treat@torchmobile\.com/treat@kde\.org/g' \
| sed -e 's/torarnv@gmail\.com/tavestbo@trolltech\.com/g' \
| sed -e 's/bks@coldkeck2\.colorado\.edu/bks24@cornell\.edu/g' \
| sed -e 's/porphyr /Mark Reiche /g' \
| sed -e 's/vinx@zulu\.(none)/smart2128@baslug\.org/g' \
| sed -e 's/Matvey Kozhev/Maia Kozheva/g' \
| sed -e 's/kristof@localhost.(none)/[email protected]/g' \
| sed -e 's/[email protected]/[email protected]/g' \
| sed -e 's/[email protected]/[email protected]/g' \
| sort | uniq -c | sort -n -r | sed -e 's/^ *[0-9]* //g'