Revision 6373fdaa9d3e51aff1143dcfbd00a8e13dc43362 authored by Ian Vernon on 23 August 2019, 17:28:30 UTC, committed by Ian Vernon on 23 August 2019, 17:46:49 UTC
Signed-off by: Ian Vernon <ian@cilium.io>
1 parent 9b49d9e
extract_authors.sh
#!/bin/bash
function extract_authors() {
authors=$(git shortlog --summary | awk '{$1=""; print $0}' | sed -e 's/^ //')
IFS=$'\n'
pad=$(printf '%0.1s' " "{1..60})
padlen=40
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' "$name"
printf '%*.*s' 0 $((padlen - ${#name})) "$pad"
printf '%s\n' "$mail"
done
}
extract_authors | uniq | sort
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...