git-am foreign patch support: autodetect some patch formats
commit15ced753ac091314941abb28302f7109a9e86b81
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 27 May 2009 21:20:12 +0000 (27 23:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 May 2009 06:06:34 +0000 (28 23:06 -0700)
treeb70f1f53516d83aba7e6faedf8d41f64acf991f6
parenta5a6755a1d4707bf2fab7752e5c974ebf63d086a
git-am foreign patch support: autodetect some patch formats

Default to mbox format if input is from stdin. Otherwise, look at the
first few lines of the first patch to try to guess its format.

Include checks for mailboxes, stgit patch series, stgit single patches
and hg patches.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am.sh