diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-15 12:26:13 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-15 12:26:13 -0400 |
commit | bed5ae143681fdd2de3b502615320636e2db2199 (patch) | |
tree | 2279e9bfe15886c113ba69b78cba45c8e7dc9326 /b4/command.py | |
parent | 33a119739233a7d4f234cc7f38f3ec5f21058e4f (diff) | |
download | b4-bed5ae143681fdd2de3b502615320636e2db2199.tar.gz |
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 <robh@kernel.org>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r-- | b4/command.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |