t4150: am with pre-applypatch hook
commit3bc6686b8687e3aa0331b37464ce25b609c3ec88
authorPaul Tan <pyokagan@gmail.com>
Sun, 19 Jul 2015 15:49:14 +0000 (19 23:49 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Jul 2015 17:52:21 +0000 (20 10:52 -0700)
tree98fc6a5abaeea22d309118ce6f15da13d43eeaac
parentf26bdf2d98b6efbf02e65ef41a33b31cd3fbfcb9
t4150: am with pre-applypatch hook

Since d1c5f2a (Add git-am, applymbox replacement., 2005-10-07),
git-am.sg will invoke the pre-applypatch hook after applying the patch
to the index, but before a commit is made. Should the hook exit with a
non-zero status, git am will exit.

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