https://github.com/git/git
Raw File
Tip revision: abf411e28d9df669b0e690578a1eb95c0bd29847 authored by Junio C Hamano on 15 December 2010, 19:32:57 UTC
Git 1.6.6.3
Tip revision: abf411e
hooks--pre-applypatch.sample
#!/bin/sh
#
# An example hook script to verify what is about to be committed
# by applypatch from an e-mail message.
#
# The hook should exit with non-zero status after issuing an
# appropriate message if it wants to stop the commit.
#
# To enable this hook, rename this file to "pre-applypatch".

. git-sh-setup
test -x "$GIT_DIR/hooks/pre-commit" &&
	exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
:
back to top