From 0c913f1e421b9d47c052350c4c1d619e4ac6a297 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Mon, 13 Apr 2026 21:45:43 +0200 Subject: Initial commit --- artix/home/.local/bin/gitlc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 artix/home/.local/bin/gitlc (limited to 'artix/home/.local/bin/gitlc') 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] +}' -- cgit v1.2.3