From d036999c0c41040616dcb6d29bd2eb1a9098e74a Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 23 Oct 2023 09:52:37 -0400 Subject: [PATCH] Git: lscommits --- configs/git/.gitconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/git/.gitconfig b/configs/git/.gitconfig index c5d7a84..9e7aada 100644 --- a/configs/git/.gitconfig +++ b/configs/git/.gitconfig @@ -22,6 +22,8 @@ --date=format:'%b %d %Y %H:%M:%S %z' branches = branch -a -l -vv overview = log --all --pretty=format:'%C(green)commit %C(yellow)%h%C(green) by %C(reset)%C(yellow)%aN %C(dim white)(%ar) %n%C(dim white)%S%n%B%n' + lscommits = ! ( echo -e "Commits\tFile" && git log --pretty=format: --name-only | sed '/^$/d' | sort | uniq -c | sort -g -r ) | less + lsc = lscommits [filter "lfs"] clean = git-lfs clean -- %f