precommit

This commit is contained in:
Dominic DiTaranto 2025-11-08 09:57:12 -05:00
commit 4ab65b9d5c

11
hooks/pre-commit Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
if git diff --cached --name-only --diff-filter=ACMR | xargs grep -nH 'breakpoint'
then
echo "You have breakpoints in your code, remove them before committing!"
echo "If you want to bypass this run git commit --no-verify -m 'msg'"
exit 1
else
exit 0
fi