summaryrefslogtreecommitdiffstats
path: root/githooks.html
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-04-22 14:41:44 -0700
committerJunio C Hamano <gitster@pobox.com>2020-04-22 14:41:44 -0700
commit67bf224a9fb3cd34ef712113c48f3144a9bc232a (patch)
treeb3406220064904e5c16814c16b29375806646762 /githooks.html
parent0c3c56d58eecca238d9219bfe80754e089939b99 (diff)
downloadgit-htmldocs-67bf224a9fb3cd34ef712113c48f3144a9bc232a.tar.gz
Autogenerated HTML docs for v2.26.2-266-ge8703
Diffstat (limited to 'githooks.html')
-rw-r--r--githooks.html40
1 files changed, 38 insertions, 2 deletions
diff --git a/githooks.html b/githooks.html
index 53fd31bed..96d3b218d 100644
--- a/githooks.html
+++ b/githooks.html
@@ -1198,10 +1198,46 @@ hook to limit its search. On error, it will fall back to verifying
all files and folders.</p></div>
</div>
<div class="sect2">
+<h3 id="_p4_changelist">p4-changelist</h3>
+<div class="paragraph"><p>This hook is invoked by <code>git-p4 submit</code>.</p></div>
+<div class="paragraph"><p>The <code>p4-changelist</code> hook is executed after the changelist
+message has been edited by the user. It can be bypassed with the
+<code>--no-verify</code> option. It takes a single parameter, the name
+of the file that holds the proposed changelist text. Exiting
+with a non-zero status causes the command to abort.</p></div>
+<div class="paragraph"><p>The hook is allowed to edit the changelist file and can be used
+to normalize the text into some project standard format. It can
+also be used to refuse the Submit after inspect the message file.</p></div>
+<div class="paragraph"><p>Run <code>git-p4 submit --help</code> for details.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_p4_prepare_changelist">p4-prepare-changelist</h3>
+<div class="paragraph"><p>This hook is invoked by <code>git-p4 submit</code>.</p></div>
+<div class="paragraph"><p>The <code>p4-prepare-changelist</code> hook is executed right after preparing
+the default changelist message and before the editor is started.
+It takes one parameter, the name of the file that contains the
+changelist text. Exiting with a non-zero status from the script
+will abort the process.</p></div>
+<div class="paragraph"><p>The purpose of the hook is to edit the message file in place,
+and it is not supressed by the <code>--no-verify</code> option. This hook
+is called even if <code>--prepare-p4-only</code> is set.</p></div>
+<div class="paragraph"><p>Run <code>git-p4 submit --help</code> for details.</p></div>
+</div>
+<div class="sect2">
+<h3 id="_p4_post_changelist">p4-post-changelist</h3>
+<div class="paragraph"><p>This hook is invoked by <code>git-p4 submit</code>.</p></div>
+<div class="paragraph"><p>The <code>p4-post-changelist</code> hook is invoked after the submit has
+successfully occured in P4. It takes no parameters and is meant
+primarily for notification and cannot affect the outcome of the
+git p4 submit action.</p></div>
+<div class="paragraph"><p>Run <code>git-p4 submit --help</code> for details.</p></div>
+</div>
+<div class="sect2">
<h3 id="_p4_pre_submit">p4-pre-submit</h3>
<div class="paragraph"><p>This hook is invoked by <code>git-p4 submit</code>. It takes no parameters and nothing
from standard input. Exiting with non-zero status from this script prevent
-<code>git-p4 submit</code> from launching. Run <code>git-p4 submit --help</code> for details.</p></div>
+<code>git-p4 submit</code> from launching. It can be bypassed with the <code>--no-verify</code>
+command line option. Run <code>git-p4 submit --help</code> for details.</p></div>
</div>
<div class="sect2">
<h3 id="_post_index_change">post-index-change</h3>
@@ -1230,7 +1266,7 @@ running passing "1", "1" should not be possible.</p></div>
<div id="footer">
<div id="footer-text">
Last updated
- 2020-03-10 08:03:13 PDT
+ 2020-04-22 14:37:28 PDT
</div>
</div>
</body>