11 lines
268 B
Bash
Executable file
11 lines
268 B
Bash
Executable file
#!/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
|
|
|