I really like Google's guidelines for commit messages because they enforce a style like this. It really makes dealing with legacy code much easier when you can look at past commits and see that your predecessors were thinking.
https://google.github.io/eng-practices/review/developer/cl-d...