mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
devel: script to calculate a list of authors.
As an initial heuristic, report anyone with at least 15 lines of code in the current source tree. Test corpora are excluded, although probabably this doesn't change much about the list of authors produced.
This commit is contained in:
parent
ba35784114
commit
55619625eb
1 changed files with 11 additions and 0 deletions
11
devel/author-scan.sh
Normal file
11
devel/author-scan.sh
Normal file
|
@ -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
|
Loading…
Reference in a new issue