Junio C Hamano | 4426ac7 | 2005-08-19 13:53:13 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # An example hook script to verify what is about to be committed |
| 4 | # by applypatch from an e-mail message. |
| 5 | # |
| 6 | # The hook should exit with non-zero status after issuing an |
| 7 | # appropriate message if it wants to stop the commit. |
| 8 | # |
Junio C Hamano | f98f8cb | 2008-06-24 18:45:21 -0700 | [diff] [blame] | 9 | # To enable this hook, rename this file to "pre-applypatch". |
Junio C Hamano | 4426ac7 | 2005-08-19 13:53:13 -0700 | [diff] [blame] | 10 | |
Junio C Hamano | a204756 | 2006-02-26 15:16:41 -0800 | [diff] [blame] | 11 | . git-sh-setup |
Junio C Hamano | 4426ac7 | 2005-08-19 13:53:13 -0700 | [diff] [blame] | 12 | test -x "$GIT_DIR/hooks/pre-commit" && |
| 13 | exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"} |
| 14 | : |