annotate myTools/.git/hooks/applypatch-msg.sample @ 6:f9f71cf4c3e3

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