From 1b302aad8d6b835750e854c2e88f71489d3eca63 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 13 May 2020 00:40:45 -0400 Subject: b4: Add --cherry-pick to am transient This option was added in b4 v0.4.1. --- piem-b4.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)] -- cgit v1.2.3