Comment by lambdaone
That might sound facile, but it's actually a great idea. Being able to ignore commits based on regexes would be even more powerful.
That might sound facile, but it's actually a great idea. Being able to ignore commits based on regexes would be even more powerful.
Not sure it really has huge benefits, but I guess something like this should work:
``` #!/bin/sh N=20 msg_len=$(git log -1 --pretty=%B | wc -c) if [ "$msg_len" -lt "$N" ]; then exit 125 fi # Here you would run your actual test and report 0 (good), 1 (bad) as needed exit 0 ```