X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=devel%2Fauthor-scan.sh;fp=devel%2Fauthor-scan.sh;h=23854f391a1f76fefce19c579de00d059c4d0b3c;hp=2d9c4af8deb34f844013321bb9ad957ba619c48c;hb=5734d8bd3220c99972290949c204091116c8b200;hpb=8908779999dbf6f2c6338f492950bb576bb6b5dd diff --git a/devel/author-scan.sh b/devel/author-scan.sh index 2d9c4af8..23854f39 100644 --- a/devel/author-scan.sh +++ b/devel/author-scan.sh @@ -5,7 +5,7 @@ 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 ls-files | grep -v -e "$FILE_EXCLUDE" | tr '\n' '\0' | xargs -0 -n 1 \ 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