blob: 486e906112b81edbe5bce4682e367cad6b8930c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
# Based on
# https://github.com/cilium/cilium/blob/master/contrib/scripts/extract_authors.sh
function extract_authors() {
authors=$(git shortlog --summary | awk '{$1=""; print $0}' | sed -e 's/^ //')
IFS=$'\n'
for i in $authors; do
name=$(git log --use-mailmap --author="$i" --format="%aN" | head -1)
mail=$(git log --use-mailmap --author="$i" --format="%aE" | head -1)
printf ' * %s <%s>\n' "$name" "$mail"
done
}
extract_authors | uniq | sort
|