summaryrefslogtreecommitdiff
path: root/artix/home/.local/bin/gitlc
diff options
context:
space:
mode:
authorNantha Sorubakanthan <nantha@mielota.com>2026-04-13 21:45:43 +0200
committerNantha Sorubakanthan <nantha@mielota.com>2026-04-13 21:45:43 +0200
commit0c913f1e421b9d47c052350c4c1d619e4ac6a297 (patch)
treec9124ff04b9252836221c41d2ca2fa133d166251 /artix/home/.local/bin/gitlc
Initial commit
Diffstat (limited to 'artix/home/.local/bin/gitlc')
-rwxr-xr-xartix/home/.local/bin/gitlc20
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]
+}'