annotate .git/hooks/pre-applypatch.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 verify what is about to be committed
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
4 # by 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.
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
8 #
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
9 # To enable this hook, rename this file to "pre-applypatch".
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
10
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
11 . git-sh-setup
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
12 test -x "$GIT_DIR/hooks/pre-commit" &&
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
13 exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
b76a4f17bbbb Uploaded
devteam
parents:
diff changeset
14 :