This patch adds pre-commit hook support to ensure code passes basic checks prior to allowing a commit.