Junio C Hamano <gitster@xxxxxxxxx> writes: > ... How about doing it in the pre-commit hook? Sorry, as it runs before obtaining the proposed commit log message and making a commit, pre-commit is a wrong one to use. I meant to say commit-msg hook that is used to verify the contents of the proposed commit log message.