aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-05-13 00:40:45 -0400
committerKyle Meyer <kyle@kyleam.com>2020-05-13 00:40:45 -0400
commit1b302aad8d6b835750e854c2e88f71489d3eca63 (patch)
treee3828de568fb0818e36c56eac470222207f6a414
parent50bb0778bb1ea88e18eb11a1520c257b30c08ee0 (diff)
downloadpiem-1b302aad8d6b835750e854c2e88f71489d3eca63.tar.gz
b4: Add --cherry-pick to am transient
This option was added in b4 v0.4.1.
-rw-r--r--piem-b4.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/piem-b4.el b/piem-b4.el
index 6698348..b073cbd 100644
--- a/piem-b4.el
+++ b/piem-b4.el
@@ -298,6 +298,13 @@ in `piem-b4-default-branch-function'."
:argument "--use-version="
:reader #'transient-read-number-N+)
+(define-infix-argument piem-b4-am:--cherry-pick ()
+ :description "Select a subset of patches by number"
+ :class 'transient-option
+ :shortarg "-P"
+ :argument "--cherry-pick="
+ :reader #'read-string)
+
;;;###autoload (autoload 'piem-b4-am "b4" nil t)
(define-transient-command piem-b4-am ()
"Filter mbox to patches and feed to git-am"
@@ -308,7 +315,8 @@ in `piem-b4-default-branch-function'."
("-S" "Apply trailers without checking email addresses" "--sloppy-trailers")
("-t" "Apply cover letter trailers" "--apply-cover-trailers")
("-T" "Do not add trailers" "--no-add-trailers")
- (piem-b4-am:--use-version)]
+ (piem-b4-am:--use-version)
+ (piem-b4-am:--cherry-pick)]
["Options for creating am-ready mboxes"
(piem-b4-am:--outdir)
(piem-b4-am:--mbox-name)]