summaryrefslogtreecommitdiffstats
path: root/git-p4.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-08-17 15:21:16 -0700
committerJunio C Hamano <gitster@pobox.com>2018-08-17 15:21:16 -0700
commitbfd91f4e89b5ab0f4238e1bfb7bd0e2a82adc225 (patch)
treec33af60aaec3db5022000bba743acc5c95314c23 /git-p4.txt
parentf09b7cd0fc08d1df0fbd5c756672772049836b7a (diff)
downloadgit-htmldocs-bfd91f4e89b5ab0f4238e1bfb7bd0e2a82adc225.tar.gz
Autogenerated HTML docs for v2.18.0-748-gfa03c
Diffstat (limited to 'git-p4.txt')
-rw-r--r--git-p4.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/git-p4.txt b/git-p4.txt
index f0de3b891..41780a5aa 100644
--- a/git-p4.txt
+++ b/git-p4.txt
@@ -374,6 +374,14 @@ These options can be used to modify 'git p4 submit' behavior.
been submitted. Implies --disable-rebase. Can also be set with
git-p4.disableP4Sync. Sync with origin/master still goes ahead if possible.
+Hook for submit
+~~~~~~~~~~~~~~~
+The `p4-pre-submit` hook is executed if it exists and is executable.
+The hook takes no parameters and nothing from standard input. Exiting with
+non-zero status from this script prevents `git-p4 submit` from launching.
+
+One usage scenario is to run unit tests in the hook.
+
Rebase options
~~~~~~~~~~~~~~
These options can be used to modify 'git p4 rebase' behavior.