aboutsummaryrefslogtreecommitdiff
path: root/tools/list-authors.sh
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-08-10 16:22:56 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-08-18 11:13:59 +0200
commit60c0c1e6ccad41190dfe1f7dbd47a7d1974427d0 (patch)
tree8dc11e8cfa74bfa6f1b8d3c74aa34f71537194f1 /tools/list-authors.sh
parentAddressBar: prevent URL formatting caused by context menu (diff)
downloadsmolbote-60c0c1e6ccad41190dfe1f7dbd47a7d1974427d0.tar.xz
Update readme
Update configuration summary
Diffstat (limited to 'tools/list-authors.sh')
-rwxr-xr-xtools/list-authors.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/list-authors.sh b/tools/list-authors.sh
new file mode 100755
index 0000000..430d4a9
--- /dev/null
+++ b/tools/list-authors.sh
@@ -0,0 +1,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'
+