annotate BSseeker2/.git/hooks/applypatch-msg.sample @ 1:8b26adf64adc draft default tip

V2.0.5
author weilong-guo
date Tue, 05 Nov 2013 01:55:39 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
weilong-guo
parents:
diff changeset
1 #!/bin/sh
weilong-guo
parents:
diff changeset
2 #
weilong-guo
parents:
diff changeset
3 # An example hook script to check the commit log message taken by
weilong-guo
parents:
diff changeset
4 # applypatch from an e-mail message.
weilong-guo
parents:
diff changeset
5 #
weilong-guo
parents:
diff changeset
6 # The hook should exit with non-zero status after issuing an
weilong-guo
parents:
diff changeset
7 # appropriate message if it wants to stop the commit. The hook is
weilong-guo
parents:
diff changeset
8 # allowed to edit the commit message file.
weilong-guo
parents:
diff changeset
9 #
weilong-guo
parents:
diff changeset
10 # To enable this hook, rename this file to "applypatch-msg".
weilong-guo
parents:
diff changeset
11
weilong-guo
parents:
diff changeset
12 . git-sh-setup
weilong-guo
parents:
diff changeset
13 test -x "$GIT_DIR/hooks/commit-msg" &&
weilong-guo
parents:
diff changeset
14 exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
weilong-guo
parents:
diff changeset
15 :