builtin-am: invoke applypatch-msg hook
commitb8803d8f8c987b9867385a033aab71a7cb967553
authorPaul Tan <pyokagan@gmail.com>
Tue, 4 Aug 2015 13:51:56 +0000 (4 21:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 05:02:11 +0000 (4 22:02 -0700)
tree563332dc53fe77c54f469b207d4e89b8622495c8
parent88b291fe9db645366853fc759d497342c130fd35
builtin-am: invoke applypatch-msg hook

Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07),
git-am.sh 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.sh abort before even applying the patch to the index.

Re-implement this in builtin/am.c.

Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c