https://github.com/git/git
Raw File
Tip revision: 0822e66b5d49d0de1aa767b38785e42de05eaf40 authored by Junio C Hamano on 17 March 2020, 21:54:02 UTC
Git 2.25.2
Tip revision: 0822e66
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