From a3c58ceff58f778d2b7f14454ee8067b75f74f68 Mon Sep 17 00:00:00 2001 From: Matei Adriel Date: Fri, 9 Feb 2024 20:18:48 +0100 Subject: [PATCH] Add git alias for counting commits --- home/features/cli/git.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/home/features/cli/git.nix b/home/features/cli/git.nix index 77105e2..5a41d34 100644 --- a/home/features/cli/git.nix +++ b/home/features/cli/git.nix @@ -33,6 +33,9 @@ # Print last commit's hash hash = "log -1 --format='%H'"; + + # Count the number of commits + count = "rev-list --count --all"; }; # }}}