https://github.com/git/git
Raw File
Tip revision: 274b9cc25322d9ee79aa8e6d4e86f0ffe5ced925 authored by Junio C Hamano on 22 March 2020, 23:50:46 UTC
Git 2.26
Tip revision: 274b9cc
hooks--pre-merge-commit.sample
#!/bin/sh
#
# An example hook script to verify what is about to be committed.
# Called by "git merge" with no arguments.  The hook should
# exit with non-zero status after issuing an appropriate message to
# stderr if it wants to stop the merge commit.
#
# To enable this hook, rename this file to "pre-merge-commit".

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