diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 15:59:09 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-05-07 15:59:09 -0400 |
commit | d85fa243e03624cd4c49484a47b20053b2a313a8 (patch) | |
tree | 9cab3406eb43d79d0e4101b5e9038fa317933858 /b4/command.py | |
parent | 9ead0d56c5f282d700181873b185c4e868f09350 (diff) | |
download | b4-d85fa243e03624cd4c49484a47b20053b2a313a8.tar.gz |
Add -P,--cherry-pick option to "b4 am"
This lets someone select a subset of patches in a series, e.g.:
b4 am -P 1-3,5,7- [msgid]
Suggested-by: Heiko Stübner <heiko@sntech.de>
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r-- | b4/command.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/command.py b/b4/command.py index 72a2fe1..6d516a3 100644 --- a/b4/command.py +++ b/b4/command.py @@ -97,6 +97,8 @@ def cmd(): help='Add a lore.kernel.org/r/ link to every patch') 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-)') sp_am.set_defaults(func=cmd_am) # b4 attest |