e@0: #!/bin/sh e@0: # e@0: # An example hook script to check the commit log message taken by e@0: # applypatch from an e-mail message. e@0: # e@0: # The hook should exit with non-zero status after issuing an e@0: # appropriate message if it wants to stop the commit. The hook is e@0: # allowed to edit the commit message file. e@0: # e@0: # To enable this hook, rename this file to "applypatch-msg". e@0: e@0: . git-sh-setup e@0: commitmsg="$(git rev-parse --git-path hooks/commit-msg)" e@0: test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} e@0: :