annotate training-sessions/tom.deacon/.git/hooks/applypatch-msg.sample @ 2:c87a9505f294
tip
Added LICENSE for code, removed .wav files
author |
Emmanouil Theofanis Chourdakis <e.t.chourdakis@qmul.ac.uk> |
date |
Sat, 30 Sep 2017 13:25:50 +0100 |
parents |
246d5546657c |
children |
|
rev |
line source |
e@0
|
1 #!/bin/sh
|
e@0
|
2 #
|
e@0
|
3 # An example hook script to check the commit log message taken by
|
e@0
|
4 # applypatch from an e-mail message.
|
e@0
|
5 #
|
e@0
|
6 # The hook should exit with non-zero status after issuing an
|
e@0
|
7 # appropriate message if it wants to stop the commit. The hook is
|
e@0
|
8 # allowed to edit the commit message file.
|
e@0
|
9 #
|
e@0
|
10 # To enable this hook, rename this file to "applypatch-msg".
|
e@0
|
11
|
e@0
|
12 . git-sh-setup
|
e@0
|
13 commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
|
e@0
|
14 test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
|
e@0
|
15 :
|