From 281dc0140103886a9895cf4ab57e727923cb4752 Mon Sep 17 00:00:00 2001
From: Adar Nimrod <nimrod@shore.co.il>
Date: Mon, 5 Jul 2021 23:09:27 +0300
Subject: [PATCH] fixup! pre-commit git alias.

---
 .config/git/config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/git/config b/.config/git/config
index 4fff94e..13c5137 100644
--- a/.config/git/config
+++ b/.config/git/config
@@ -19,7 +19,7 @@
     merg = merge --no-edit
     pop = stash pop
     posh = push --set-upstream origin HEAD
-    pre-commit = !git diff --name-only | xargs -r pre-commit run --files
+    pre-commit = ! pre-commit run --files $(git diff --name-only) $(git diff --cached --name-only)
     Pull = pull --progress --ff --tags
     pull-force = !git fetch && git reset --hard "$(git tracking)"
     pushes = !git remote | xargs -n1 git push
-- 
GitLab