summaryrefslogtreecommitdiffstats
path: root/githooks.html
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.html
parent926cc052d4e49ae0c1af3703c87b0d1037d7fbac (diff)
downloadgit-htmldocs-cb705397f111dc1fcb3e3fa844bfd5b3050dee38.tar.gz
Autogenerated HTML docs for v2.23.0-256-g4c861
Diffstat (limited to 'githooks.html')
-rw-r--r--githooks.html20
1 files changed, 19 insertions, 1 deletions
diff --git a/githooks.html b/githooks.html
index 0dc0c2886..6b3e11e15 100644
--- a/githooks.html
+++ b/githooks.html
@@ -828,6 +828,24 @@ to modify the commit message.</p></div>
the use of non-ASCII filenames.</p></div>
</div>
<div class="sect2">
+<h3 id="_pre_merge_commit">pre-merge-commit</h3>
+<div class="paragraph"><p>This hook is invoked by <a href="git-merge.html">git-merge(1)</a>, and can be bypassed
+with the <code>--no-verify</code> 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 <code>git merge</code> command to abort before creating a commit.</p></div>
+<div class="paragraph"><p>The default <em>pre-merge-commit</em> hook, when enabled, runs the
+<em>pre-commit</em> hook, if the latter is enabled.</p></div>
+<div class="paragraph"><p>This hook is invoked with the environment variable
+<code>GIT_EDITOR=:</code> if the command will not bring up an editor
+to modify the commit message.</p></div>
+<div class="paragraph"><p>If the merge cannot be carried out automatically, the conflicts
+need to be resolved and the result committed separately (see
+<a href="git-merge.html">git-merge(1)</a>). At that point, this hook will not be executed,
+but the <em>pre-commit</em> hook will, if it is enabled.</p></div>
+</div>
+<div class="sect2">
<h3 id="_prepare_commit_msg">prepare-commit-msg</h3>
<div class="paragraph"><p>This hook is invoked by <a href="git-commit.html">git-commit(1)</a> right after preparing the
default log message, and before the editor is started.</p></div>
@@ -1205,7 +1223,7 @@ running passing "1", "1" should not be possible.</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2019-07-09 19:51:04 PDT
+ 2019-09-18 12:25:17 PDT
</div>
</div>
</body>