2013/04/21: Who are the persons behind an open-source project managed by git?

I sometimes find it interesting to know who are the persons who contributed to an open-source project. A very rough first idea can be obtained by counting the commits. With git becoming the dominating version control system, the line to remember is the following.


git log --format=%aE | awk '{ a[$0]+=1} END {for (x in a){print a[x],x}}' | sort -rn

If you're only interested in the organisations, ignore the local part.
git log --format=%aE | sed -e 's/.*@//' | awk '{ a[$0]+=1} END {for (x in a){print a[x],x}}' | sort -rn