https://github.com/git/git
Raw File
Tip revision: 1f9b620fdbf27835f54b11008d64c4014b8f4c32 authored by Junio C Hamano on 20 April 2009, 00:34:26 UTC
GIT 1.6.2.4
Tip revision: 1f9b620
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