1 Git provides hooks to automatically execute scripts at certain points.
2 See the `Git Community Book`_ for details.
4 <file path=".git/hooks/pre-commit">
6 ./misc/hooks/pre-commit-diff-check || exit 1 # check patch formatting
7 make check || exit 1 # check sawsim execution
10 .. _Git Community Book: http://book.git-scm.com/5_git_hooks.html