Paul Tan c29807b27d builtin-am: auto-detect mbox patches
Since 15ced75 (git-am foreign patch support: autodetect some patch
formats, 2009-05-27), git-am.sh is able to autodetect mbox, stgit and
mercurial patches through heuristics.

Re-implement support for autodetecting mbox/maildir files in
builtin/am.c.

RFC 2822 requires that lines are terminated by "\r\n". To support this,
implement strbuf_getline_crlf(), which will remove both '\n' and "\r\n"
from the end of the line.

Helped-by: Junio C Hamano <gitster@pobox.com>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Helped-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Paul Tan <pyokagan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-08-04 22:02:11 -07:00
..
2015-06-25 10:47:46 -07:00
2015-08-04 22:02:11 -07:00
2014-07-16 11:10:11 -07:00
2015-08-03 11:01:27 -07:00
2015-07-13 14:02:19 -07:00
2015-08-03 11:01:17 -07:00
2015-01-14 09:32:04 -08:00
2015-06-22 13:17:10 -07:00
2015-08-03 11:01:18 -07:00
2015-07-13 14:02:02 -07:00
2015-03-20 13:11:53 -07:00
2015-08-03 11:01:18 -07:00
2015-08-03 11:01:27 -07:00
2015-06-05 12:17:36 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-07-13 14:02:02 -07:00
2015-06-18 13:18:59 -07:00
2015-06-22 13:17:10 -07:00
2015-05-11 14:23:39 -07:00
2015-08-03 11:01:10 -07:00
2015-01-14 09:32:04 -08:00
2015-01-14 09:32:04 -08:00
2015-07-13 14:02:19 -07:00