Chris@14: #!/bin/sh Chris@14: # Chris@14: # An example hook script to verify what is about to be committed Chris@14: # by applypatch from an e-mail message. Chris@14: # Chris@14: # The hook should exit with non-zero status after issuing an Chris@14: # appropriate message if it wants to stop the commit. Chris@14: # Chris@14: # To enable this hook, rename this file to "pre-applypatch". Chris@14: Chris@14: . git-sh-setup Chris@14: precommit="$(git rev-parse --git-path hooks/pre-commit)" Chris@14: test -x "$precommit" && exec "$precommit" ${1+"$@"} Chris@14: :