summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-09-17 13:53:57 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-09-17 13:53:57 -0700
commit6b472d9aafc522a99101de394f46ae284abe8c10 (patch)
tree0bdaba0a2225199b98d33b065af2479dadcc3aaf /builtin
parentMerge branch 'jk/cocci' (diff)
parentmailinfo: support format=flowed (diff)
downloadtgif-6b472d9aafc522a99101de394f46ae284abe8c10.tar.xz
Merge branch 'rs/mailinfo-format-flowed'
"git mailinfo" used in "git am" learned to make a best-effort recovery of a patch corrupted by MUA that sends text/plain with format=flawed option. * rs/mailinfo-format-flowed: mailinfo: support format=flowed
Diffstat (limited to 'builtin')
-rw-r--r--builtin/am.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c
index 162a048bf7..5e643e2a3e 100644
--- a/builtin/am.c
+++ b/builtin/am.c
@@ -1244,6 +1244,10 @@ static int parse_mail(struct am_state *state, const char *mail)
fclose(mi.input);
fclose(mi.output);
+ if (mi.format_flowed)
+ warning(_("Patch sent with format=flowed; "
+ "space at the end of lines might be lost."));
+
/* Extract message and author information */
fp = xfopen(am_path(state, "info"), "r");
while (!strbuf_getline_lf(&sb, fp)) {