mirror of
https://github.com/usetrmnl/trmnl-android.git
synced 2026-04-29 13:35:26 -07:00
Update .githooks/pre-commit
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user