aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2021-12-28 12:04:17 -0500
committerKyle Meyer <kyle@kyleam.com>2021-12-28 18:12:51 -0500
commit010ab95f59d8a4fcdd6fa26db3c1e567ab1ccacc (patch)
treedafcb078514cb93d3ca077c91a641389898f2171
parentd7d15a74c933e9a108c47f0515fc7a1b6d3199d6 (diff)
downloadpiem-010ab95f59d8a4fcdd6fa26db3c1e567ab1ccacc.tar.gz
piem-edit-patch-am: Relay piem-am-ready-mbox's format
piem-edit stores the format returned by piem-am-ready-mbox in a buffer-local variable, piem-edit-patch--format. However, piem-edit-patch-am doesn't use this value when it calls piem-am, instead passing a hard-coded "mbox". Pass piem-edit-patch--format so that git-am is called with the appropriate format. Cc: Leo <sourcehut@relevant-information.com> Message-Id: <20211228170417.216825-1-kyle@kyleam.com>
-rw-r--r--piem.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/piem.el b/piem.el
index b06719b..b839942 100644
--- a/piem.el
+++ b/piem.el
@@ -1006,7 +1006,7 @@ this triggers the creation of a new worktree."
(interactive)
(let ((buf (current-buffer)))
(piem-am buf
- "mbox"
+ piem-edit-patch--format
(piem-extract-mbox-info (current-buffer))
piem-edit-patch--coderepo)
(kill-buffer buf)))