Junio C Hamano | 4426ac7 | 2005-08-19 13:53:13 -0700 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # |
| 3 | # An example hook script to check the commit log message taken by |
| 4 | # 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. The hook is |
| 8 | # allowed to edit the commit message file. |
| 9 | # |
Junio C Hamano | f98f8cb | 2008-06-24 18:45:21 -0700 | [diff] [blame] | 10 | # To enable this hook, rename this file to "applypatch-msg". |
Junio C Hamano | 4426ac7 | 2005-08-19 13:53:13 -0700 | [diff] [blame] | 11 | |
Junio C Hamano | a204756 | 2006-02-26 15:16:41 -0800 | [diff] [blame] | 12 | . git-sh-setup |
Nguyễn Thái Ngọc Duy | b849b95 | 2014-11-30 15:24:38 +0700 | [diff] [blame] | 13 | commitmsg="$(git rev-parse --git-path hooks/commit-msg)" |
| 14 | test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} |
Junio C Hamano | 4426ac7 | 2005-08-19 13:53:13 -0700 | [diff] [blame] | 15 | : |