Git hook for generating commit messages