aboutsummaryrefslogtreecommitdiff
path: root/tools/list-authors.sh
blob: 430d4a90f524682b8fa55b752dea9e3ab381c768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/bash

# git shortlog:
# -s (--summary): suppress commit description
# -n (--numbered): sort according to number of commits per author
# -e (--email): show email address of author

# sed:
# replace (any spaces)(any numbers)(any spaces) with ' - '
# this replaces the commit numbers and turns it into a bullet list
git shortlog -sne $1 | sed -e 's/^\s*[0-9]*\s*/ - /g'