git-p4: add the `p4-pre-submit` hook
authorChen Bin <chenbin.sh@gmail.com>
Fri, 27 Jul 2018 11:22:22 +0000 (21:22 +1000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Aug 2018 20:37:18 +0000 (13:37 -0700)
commit251c8c501faf7a7910edb7c9e19692988dcac6a8
treeabdf73ddbb55bae86391f683b7a9eeb2a6c9b4db
parentffc6fa0e396238de3a30623912980263b4f283ab
git-p4: add the `p4-pre-submit` hook

The `p4-pre-submit` hook is executed before git-p4 submits code.
If the hook exits with non-zero value, submit process not start.

Signed-off-by: Chen Bin <chenbin.sh@gmail.com>
Reviewed-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-p4.txt
Documentation/githooks.txt
git-p4.py
t/t9800-git-p4-basic.sh