From 59b519ab7e703ebdbad06bd9ba3cae6e55d880d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 10 May 2021 00:12:13 +0700 Subject: [PATCH] am: learn to process quoted lines that ends with CRLF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In previous changes, mailinfo has learnt to process lines that decoded from base64 or quoted-printable, and ends with CRLF. Let's teach "am" that new trick, too. Signed-off-by: Đoàn Trần Công Danh Signed-off-by: Junio C Hamano --- Documentation/git-am.txt | 4 ++ builtin/am.c | 51 ++++++++++++++++++++++++++ contrib/completion/git-completion.bash | 5 +++ mailinfo.h | 1 + t/t4258-am-quoted-cr.sh | 37 +++++++++++++++++++ t/t4258/mbox | 12 ++++++ 6 files changed, 110 insertions(+) create mode 100755 t/t4258-am-quoted-cr.sh create mode 100644 t/t4258/mbox diff --git a/Documentation/git-am.txt b/Documentation/git-am.txt index decd8ae122..8714dfcb76 100644 --- a/Documentation/git-am.txt +++ b/Documentation/git-am.txt @@ -15,6 +15,7 @@ SYNOPSIS [--whitespace=