diff options
Diffstat (limited to 'artix/home/.local/bin/gitlc')
| -rwxr-xr-x | artix/home/.local/bin/gitlc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/artix/home/.local/bin/gitlc b/artix/home/.local/bin/gitlc new file mode 100755 index 0000000..8dd982f --- /dev/null +++ b/artix/home/.local/bin/gitlc @@ -0,0 +1,20 @@ +#! /bin/bash + +git log --format="%aN" --numstat | \ +awk ' +NF==0 { next } + +$1 ~ /^[0-9]+$/ { + add[author]+=$1 + del[author]+=$2 + next +} + +$1 == "-" { next } + +author=$0 + +END { + for (a in add) + printf "%s : +%d / -%d / net %d\n", a, add[a], del[a], add[a]-del[a] +}' |
