Enhancing git pre-commit hook