summaryrefslogtreecommitdiffstats
path: root/githooks.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-09-18 12:30:01 -0700
committerJunio C Hamano <gitster@pobox.com>2019-09-18 12:30:01 -0700
commitcb705397f111dc1fcb3e3fa844bfd5b3050dee38 (patch)
tree7a08f9890ae401f03a3d3fb034c06f1be74e727e /githooks.txt
parent926cc052d4e49ae0c1af3703c87b0d1037d7fbac (diff)
downloadgit-htmldocs-cb705397f111dc1fcb3e3fa844bfd5b3050dee38.tar.gz
Autogenerated HTML docs for v2.23.0-256-g4c861
Diffstat (limited to 'githooks.txt')
-rw-r--r--githooks.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/githooks.txt b/githooks.txt
index 82cd57377..57d6e2b98 100644
--- a/githooks.txt
+++ b/githooks.txt
@@ -103,6 +103,28 @@ The default 'pre-commit' hook, when enabled--and with the
`hooks.allownonascii` config option unset or set to false--prevents
the use of non-ASCII filenames.
+pre-merge-commit
+~~~~~~~~~~~~~~~~
+
+This hook is invoked by linkgit:git-merge[1], and can be bypassed
+with the `--no-verify` option. It takes no parameters, and is
+invoked after the merge has been carried out successfully and before
+obtaining the proposed commit log message to
+make a commit. Exiting with a non-zero status from this script
+causes the `git merge` command to abort before creating a commit.
+
+The default 'pre-merge-commit' hook, when enabled, runs the
+'pre-commit' hook, if the latter is enabled.
+
+This hook is invoked with the environment variable
+`GIT_EDITOR=:` if the command will not bring up an editor
+to modify the commit message.
+
+If the merge cannot be carried out automatically, the conflicts
+need to be resolved and the result committed separately (see
+linkgit:git-merge[1]). At that point, this hook will not be executed,
+but the 'pre-commit' hook will, if it is enabled.
+
prepare-commit-msg
~~~~~~~~~~~~~~~~~~