https://github.com/git/git
Raw File
Tip revision: 0bbcf951943eefbbfee2a7e08b7150bef5b60562 authored by Johannes Schindelin on 06 February 2023, 08:24:07 UTC
Git 2.31.7
Tip revision: 0bbcf95
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