pre-commit (118B)
1 #!/bin/sh 2 3 if git commit -v --dry-run | grep -i "NOCOMMIT"; then 4 echo "NOCOMMITs found! Aborting commit!" 5 exit 1 6 fi