Update .githooks/pre-commit

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Hossain Khan
2025-06-16 13:36:36 -04:00
committed by GitHub
co-authored by Copilot
parent f5d5a02bee
commit 1585caf287
+2 -2
View File
@@ -13,9 +13,9 @@ if [ $status -ne 0 ]; then
fi
# Check if there are unstaged changes after formatting
if [[ -n $(git status -s | grep "^.M") ]]; then
if [[ -n $(git diff --name-only --diff-filter=M) ]]; then
echo "❌ Files were modified by formatKotlin. Please add these changes to your commit."
git status -s | grep "^.M"
git diff --name-only --diff-filter=M
exit 1
fi