aboutsummaryrefslogtreecommitdiff
path: root/piem-b4.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-06-06 11:48:39 -0400
committerKyle Meyer <kyle@kyleam.com>2020-06-06 15:09:59 -0400
commit5495e23781c5223ad9caaa1cbe3a0d0500512812 (patch)
tree3ae3bb4f16776b54bca4537ac6214618476b4924 /piem-b4.el
parent9faded3f5324b83a63d98550cbcef74dcc1e0bd4 (diff)
downloadpiem-5495e23781c5223ad9caaa1cbe3a0d0500512812.tar.gz
Extract patch information from a buffer rather than files
piem-am will become a command that works with mboxes outside of -b4. In this context, it's easier and cleaner to deal with a buffer than temporary files.
Diffstat (limited to 'piem-b4.el')
-rw-r--r--piem-b4.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/piem-b4.el b/piem-b4.el
index a5530e3..487b548 100644
--- a/piem-b4.el
+++ b/piem-b4.el
@@ -121,9 +121,12 @@
(read-directory-name "Git repository: ")))
(`(,cover ,mbox-file)
(piem-b4--get-am-files mid coderepo args))
- (info (piem-series-info cover mbox-file))
(default-directory coderepo))
- (piem-am mbox-file info coderepo)))
+ (piem-am mbox-file
+ (with-temp-buffer
+ (insert-file-contents (or cover mbox-file))
+ (piem-extract-mbox-info))
+ coderepo)))
(define-infix-argument piem-b4-am:--outdir ()
:description "Output directory"