adding the magical pre-commit hook