annotate .git/hooks/applypatch-msg.sample @ 0:b76a4f17bbbb draft

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