Last active
July 22, 2019 19:23
-
-
Save ludofleury/2197b4fb46a521bec084 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
# use newline as separator | |
IFS=$'\n' | |
for author in $(git log --all --format='%cN' | sort -u); do | |
echo $author; | |
git log --all --author="$author" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "++ %s\n-- %s\n= %s\n", add, subs, loc }' - | |
done | |
# git config --global alias.impact '!sh git-impact.sh' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zsh formatted