builtin-am: split out mbox/maildir patches with git-mailsplit
commit11c2177f2c264513f8d3abe64666fa05bcd84a57
authorPaul Tan <pyokagan@gmail.com>
Tue, 4 Aug 2015 13:51:26 +0000 (4 21:51 +0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 5 Aug 2015 05:02:11 +0000 (4 22:02 -0700)
tree9388ec2c4fac247a661add9a7ccd6f00cc578514
parent8c3bd9e288b3ce70d02d8a843219168a9589e917
builtin-am: split out mbox/maildir patches with git-mailsplit

git-am.sh supports mbox, stgit and mercurial patches. Re-implement
support for splitting out mbox/maildirs using git-mailsplit, while also
implementing the framework required to support other patch formats in
the future.

Re-implement support for the --patch-format option (since a5a6755
(git-am foreign patch support: introduce patch_format, 2009-05-27)) to
allow the user to choose between the different patch formats.

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