Hooks for git precommit