commit aa0a6a2ad92e46d5015ff1f9f9dbdc46b2413290
parent da0b36b0ad175d789605aecd1f56bce02b57cc7b
Author: Dash Eclipse <dashezup@disroot.org>
Date: Mon, 21 Mar 2022 20:34:57 +0000
refactor: make "git stats" an alias
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/.gitconfig b/.gitconfig
@@ -18,3 +18,5 @@
# git log --name-status
wip = "!git add --all; git commit -a -m \"wip: update\""
wtc = "!git add --all; git commit -a -m \"[WTC] $(curl -s whatthecommit.com/index.txt)\""
+ # cloc -vcs git
+ stats = !git diff --stat \"$(git hash-object -t tree /dev/null)\"
diff --git a/.local/bin/git-stats b/.local/bin/git-stats
@@ -1,3 +0,0 @@
-#!/bin/sh
-# cloc -vcs git
-git diff --stat "$(git hash-object -t tree /dev/null)"