diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2026-04-13 21:45:43 +0200 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2026-04-13 21:45:43 +0200 |
| commit | 0c913f1e421b9d47c052350c4c1d619e4ac6a297 (patch) | |
| tree | c9124ff04b9252836221c41d2ca2fa133d166251 /artix/home/.local/bin/gitlc | |
Initial commit
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] +}' |
