Mercurial > hg > isophonics-drupal-site
annotate vendor/drupal/coder/.git/hooks/applypatch-msg.sample @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | 1fec387a4317 |
children |
rev | line source |
---|---|
Chris@14 | 1 #!/bin/sh |
Chris@14 | 2 # |
Chris@14 | 3 # An example hook script to check the commit log message taken by |
Chris@14 | 4 # applypatch from an e-mail message. |
Chris@14 | 5 # |
Chris@14 | 6 # The hook should exit with non-zero status after issuing an |
Chris@14 | 7 # appropriate message if it wants to stop the commit. The hook is |
Chris@14 | 8 # allowed to edit the commit message file. |
Chris@14 | 9 # |
Chris@14 | 10 # To enable this hook, rename this file to "applypatch-msg". |
Chris@14 | 11 |
Chris@14 | 12 . git-sh-setup |
Chris@14 | 13 commitmsg="$(git rev-parse --git-path hooks/commit-msg)" |
Chris@14 | 14 test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} |
Chris@14 | 15 : |