t4150: am with applypatch-msg hook
commitf26bdf2d98b6efbf02e65ef41a33b31cd3fbfcb9
authorPaul Tan <pyokagan@gmail.com>
Sun, 19 Jul 2015 15:49:13 +0000 (19 23:49 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 17:52:13 +0000 (20 10:52 -0700)
tree0cfcb7421307f9c0a02c1a423040b1d7dc5a2b1f
parent9e2a113db95fb7e7eb3c74c1d0edc15be14fc0cf
t4150: am with applypatch-msg hook

Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07), git-am
will invoke the applypatch-msg hooks just after extracting the patch
message. If the applypatch-msg hook exits with a non-zero status, git-am
abort before even applying the patch to the index.

Add tests for this hook.

Helped-by: Junio C Hamano <gitster@pobox.com>
Reviewed-by: Stefan Beller <sbeller@google.com>
Reviewed-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4150-am.sh