angular/angular.js — pull request #1329 by vojtajina (2012-09-02 03:02:03+00:00)
Title: add commit-msg hook (commit msg validation)

Installation:

````
cd
ln -s ../../validate-commit-msg.js .git/hooks/commit-msg
````

If you are using gitx, it won't display the error (only fail):
http://gitx.lighthouseapp.com/projects/17830/tickets/294-feature-display-hook-error-message-when-hook-fails
https://groups.google.com/group/gitx/browse_thread/thread/a03bcab60844b812
Other tools should be fine.

Some more ideas, do we wanna do this ?

- allow only specific scopes, eg. fix(docs) should not be allowed
- auto correct the type to lower case
- auto correct first letter of the subject to lower case, eg. fix($compile): Bla -> fix($compile): bla
- auto add empty line after subject, if missing
- auto remove empty ()
- auto correct typos in type, eg. doc($compile) -> docs($compile)