From 1396f15c7824a9e781343bcb01b33f629b53ed1e Mon Sep 17 00:00:00 2001 From: decentral1se Date: Sun, 24 Oct 2021 18:08:00 +0200 Subject: [PATCH] chore: new loc count by author --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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