diff options
| author | Paul Tan <pyokagan@gmail.com> | 2015-08-04 21:51:27 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2015-08-04 22:02:11 -0700 |
| commit | c29807b27dc60e17eb1cd8bc50900af2a09ce66f (patch) | |
| tree | 1793937d7f01ea18b728cbfd1401ca467537ee90 /t/t4013/diff.format-patch_--inline_--stdout_initial..side | |
| parent | builtin-am: split out mbox/maildir patches with git-mailsplit (diff) | |
| download | git-c29807b27dc60e17eb1cd8bc50900af2a09ce66f.tar.gz git-c29807b27dc60e17eb1cd8bc50900af2a09ce66f.zip | |
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>
Diffstat (limited to 't/t4013/diff.format-patch_--inline_--stdout_initial..side')
0 files changed, 0 insertions, 0 deletions
