diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-08-09 22:07:04 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-08-10 21:07:32 -0400 |
commit | 0ee97e900f7daef3995284d0b4312c371b3427fa (patch) | |
tree | 275e3cc6d9bd82e8f2b7802dd11dc794af0fbabe /piem-gnus.el | |
parent | 118643c2985c0113c179d734356fc1b9e082b4c5 (diff) | |
download | piem-0ee97e900f7daef3995284d0b4312c371b3427fa.tar.gz |
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>
Diffstat (limited to 'piem-gnus.el')
-rw-r--r-- | piem-gnus.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/piem-gnus.el b/piem-gnus.el index fcfb08e..9e42185 100644 --- a/piem-gnus.el +++ b/piem-gnus.el @@ -77,9 +77,10 @@ message itself if it looks like a patch." (point-min) (point-max))))) gnus-article-mime-handles)))) (when patches - (lambda () - (dolist (patch patches) - (insert patch)))))) + (list (lambda () + (dolist (patch patches) + (insert patch))) + "mbox")))) (gnus-article-buffer (let ((patch (with-current-buffer gnus-article-buffer (save-restriction @@ -89,7 +90,8 @@ message itself if it looks like a patch." (buffer-substring-no-properties (point-min) (point-max))))))) (when patch - (lambda () (insert patch)))))))) + (list (lambda () (insert patch)) + "mbox"))))))) ;;;###autoload (define-minor-mode piem-gnus-mode |