X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=devel%2Fauthor-scan.sh;fp=devel%2Fauthor-scan.sh;h=2d9c4af8deb34f844013321bb9ad957ba619c48c;hb=55619625eb08f046e4e02ebc43f4aefa8903c638;hp=0000000000000000000000000000000000000000;hpb=ba35784114dfcd72978fae195063a49120ffef38;p=notmuch diff --git a/devel/author-scan.sh b/devel/author-scan.sh new file mode 100644 index 00000000..2d9c4af8 --- /dev/null +++ b/devel/author-scan.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +FILE_EXCLUDE='corpora' +AUTHOR_EXCLUDE='uncrustify' +# based on the FSF guideline, for want of a better idea. +THRESHOLD=15 + +git ls-files | grep -v -e "$FILE_EXCLUDE" | xargs -n 1 -d \\n \ + git blame -w --line-porcelain -- | \ + sed -n "/$AUTHOR_EXCLUDE/d; s/^[aA][uU][tT][hH][Oo][rR] //p" | \ + sort -fd | uniq -ic | awk "\$1 >= $THRESHOLD" | sort -nr