aboutsummaryrefslogtreecommitdiff
path: root/b4/command.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-09-01 15:51:37 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-09-01 15:51:37 -0400
commit75f4cffcc815429e1cf13d35d17c7954dc6614c2 (patch)
tree8731b6a984762dd0db539755dcf04cf2f167c3c7 /b4/command.py
parent03aea08e2ce2ecabcebb618ee9f6d18a909c41d4 (diff)
downloadb4-75f4cffcc815429e1cf13d35d17c7954dc6614c2.tar.gz
ez: add b4 -F to allow (re-)creating branches from threads
It is now possible to create a b4-tracked branch from an arbitrary thread (or from a previously sent b4-tracked series): b4 prep -F [msgid-of-the-series] Example: $ b4 prep -F 20220901194310.115427-1-tony.luck@intel.com Grabbing thread from lore.kernel.org/all/20220901194310.115427-1-tony.luck%40intel.com/t.mbox.gz Checking attestation on all messages, may take a moment... --- ✓ [PATCH 1/3] EDAC/skx_common: Use driver decoder first ✓ [PATCH 2/3] EDAC/skx_common: Make output format similar ✓ [PATCH 3/3] EDAC/i10nm: Add driver decoder for Ice Lake and Tremont CPUs --- ✓ Signed: DKIM/intel.com --- Created new branch b4/edac_improve_memory Applying 3 patches --- Applying: EDAC/skx_common: Use driver decoder first Applying: EDAC/skx_common: Make output format similar Applying: EDAC/i10nm: Add driver decoder for Ice Lake and Tremont CPUs --- NOTE: any follow-up trailers were ignored; apply them with b4 trailers -u This makes it easier to start tracking pre-existing series with b4 prep. Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/command.py')
-rw-r--r--b4/command.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/command.py b/b4/command.py
index 94ba875..5cd4425 100644
--- a/b4/command.py
+++ b/b4/command.py
@@ -265,6 +265,8 @@ def cmd():
help='Create a new branch for working on a patch series')
ag_prepn.add_argument('-f', '--fork-point', dest='fork_point',
help='When creating a new branch, use this fork point instead of HEAD')
+ ag_prepn.add_argument('-F', '--from-thread', metavar='MSGID', dest='msgid',
+ help='When creating a new branch, use this thread')
ag_prepe = sp_prep.add_argument_group('Enroll existing branch', 'Enroll existing branch for prep work')
ag_prepe.add_argument('-e', '--enroll', dest='enroll_base',
help='Enroll current branch, using the passed tag, branch, or commit as fork base')