diff --git a/Makefile b/Makefile index 95b7e61c..0a734d63 100644 --- a/Makefile +++ b/Makefile @@ -36,3 +36,10 @@ test: loc: @find . -name "*.go" | xargs wc -l + +loc-author: + @git ls-files -z | \ + xargs -0rn 1 -P "$$(nproc)" -I{} sh -c 'git blame -w -M -C -C --line-porcelain -- {} | grep -I --line-buffered "^author "' | \ + sort -f | \ + uniq -ic | \ + sort -n