From bed5ae143681fdd2de3b502615320636e2db2199 Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Fri, 15 May 2020 12:26:13 -0400 Subject: Expand use of --cherry-pick ("this", globbing) In addition to numerical ranges, -P is now also able to do: - "-P _" to grab just the msgid used with "b4 am" - "-P *glob*" to filter by commit message subject Suggested-by: Rob Herring Signed-off-by: Konstantin Ryabitsev --- b4/command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'b4/command.py') diff --git a/b4/command.py b/b4/command.py index 6d516a3..7709649 100644 --- a/b4/command.py +++ b/b4/command.py @@ -98,7 +98,9 @@ def cmd(): sp_am.add_argument('-Q', '--quilt-ready', dest='quiltready', action='store_true', default=False, help='Save mbox patches in a quilt-ready folder') sp_am.add_argument('-P', '--cherry-pick', dest='cherrypick', default=None, - help='Cherry-pick a subset of patches (e.g. -P 1-2,4,6-)') + help='Cherry-pick a subset of patches (e.g. "-P 1-2,4,6-", ' + '"-P _" to use just the msgid specified, or ' + '"-P *globbing*" to match on commit subject)') sp_am.set_defaults(func=cmd_am) # b4 attest -- cgit v1.2.3