The usual policy to check for git pre-commit
hook is about:
- comment message (formatting, reference to a work item of sorts)
- number of files (too many means the commit isn't a coherent "unit", but one large set of files)
- presence of specific files (like in this hook)