Last active
March 29, 2022 08:56
-
-
Save foriequal0/b7b1a609df775ac98a7b560607916401 to your computer and use it in GitHub Desktop.
Git author stat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
set -euo pipefail | |
git shortlog -s | cut -c8- | while read -r AUTHOR; do | |
git log --author="$AUTHOR" --pretty=tformat: --numstat --ignore-all-space -- . \ | |
| gawk -v AUTHOR="$AUTHOR" '{ add += $1; subs += $2; } END { printf "%s, %s, %s\n", AUTHOR, add, subs }' - | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-- .
를-- . ':(exclude)some/vendored/dir'
같은걸로 변경하면 일부 큰 파일들을 무시할 수 있음.