annotate glang-galaxy-conf/.git/hooks/applypatch-msg.sample @ 2:8947fca5f715 draft default tip

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