Add commit hook and make the verification customizable.