Bug 1182 - Create/checkout branch on multiple repos in devscripts
Summary: Create/checkout branch on multiple repos in devscripts
Status: CONFIRMED
Alias: None
Product: Libre-SOC's first SoC
Classification: Unclassified
Component: Source Code (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Assignee: Andrey Miroshnikov
URL:
Depends on:
Blocks:
 
Reported: 2023-10-11 15:02 BST by Andrey Miroshnikov
Modified: 2023-10-12 09:47 BST (History)
3 users (show)

See Also:
NLnet milestone: ---
total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0
parent task for budget allocation:
child tasks for budget allocation:
The table of payments (in EUR) for this task; TOML format:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Miroshnikov 2023-10-11 15:02:17 BST
A new script is needed for switching certain major libre-soc git repos over to user-specified branch. This will aid with the development needed for PO9 migration, as well as general branch-based development.

For now, the following git repos will be branched when this new script is run:
soc.git (also includes pinmux git submodule)
ieee754fpu.git
nmutil.git
openpower-isa.git
pinmux.git
Comment 1 Andrey Miroshnikov 2023-10-11 15:39:58 BST
The following command can be used to query all available branches for a repo:
git branch --all

Based on this I'll start making a script (will commit to master as leaf-node development, doesn't affect existing flow).
Comment 2 Jacob Lifshay 2023-10-12 04:56:55 BST
do we really need a script? running `git switch -c my_fancy_branch` is pretty easy...
Comment 3 Luke Kenneth Casson Leighton 2023-10-12 09:39:29 BST
(In reply to Jacob Lifshay from comment #2)
> do we really need a script? running `git switch -c my_fancy_branch` is
> pretty easy...

8 to 10 repositories.
Comment 4 Jacob Lifshay 2023-10-12 09:47:41 BST
(In reply to Luke Kenneth Casson Leighton from comment #3)
> (In reply to Jacob Lifshay from comment #2)
> > do we really need a script? running `git switch -c my_fancy_branch` is
> > pretty easy...
> 
> 8 to 10 repositories.

ok, i was thinking we'd only create branches in the repos we actually modify for that task...where if you're modifying more than a few repos, your task is probably too big and needs to be split.