Validator for commit messages when creating a new commit.
Rename the other attached file as commit-msg
and place it in repo/.git/hooks
do not forget chmod +x commit-msg
if needed.
Checkmmit.add_validation /foo/, "Does not contain foo text"
Checkmmit.add_validation /bar/, "Needs foo(because it's defined above) and bar"
Alejandro El Informático