From 6186990d9bcbfe344dd701caef781c4472439d6b Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 25 Dec 2017 21:35:49 +0100 Subject: Updated pre-commit hook --- tools/gen_authors.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/gen_authors.sh (limited to 'tools/gen_authors.sh') diff --git a/tools/gen_authors.sh b/tools/gen_authors.sh new file mode 100755 index 0000000..4f69c76 --- /dev/null +++ b/tools/gen_authors.sh @@ -0,0 +1,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 , Xian Nox, xiannox + +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' -- cgit v1.2.1