From 0ee97e900f7daef3995284d0b4312c371b3427fa Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 9 Aug 2020 22:07:04 -0400 Subject: Explicitly specify --patch-format in git-am calls The sources of mbox patches fed to git-am are 1) threads downloaded from a public-inbox HTTP instance, 2) mboxes generated via piem-mid-to-thread-functions, and 3) those generated via piem-am-ready-mbox-functions. The first source should always be mboxrd. For the second, piem-notmuch-mid-to-thread is currently the only function suitable for piem-mid-to-thread-functions, and it uses mboxrd. The third source is a mix between mbox and mboxrd. By default, git-am tries to auto-detect the patch format, but let's explicitly specify --patch-format to avoid any incorrect guesses. Message-Id: <20200810020704.30150-1-kyle@kyleam.com> --- piem-b4.el | 1 + 1 file changed, 1 insertion(+) (limited to 'piem-b4.el') diff --git a/piem-b4.el b/piem-b4.el index d1ec157..3381b01 100644 --- a/piem-b4.el +++ b/piem-b4.el @@ -126,6 +126,7 @@ am-ready mbox, feed the result to `git am'." (piem-b4--get-am-files mid coderepo args)) (default-directory coderepo)) (piem-am mbox-file + nil (with-temp-buffer (insert-file-contents (or cover mbox-file)) (piem-extract-mbox-info)) -- cgit v1.2.3