Bug 1182

Summary: Create/checkout branch on multiple repos in devscripts
Product: Libre-SOC's first SoC Reporter: Andrey Miroshnikov <andy.miroshnikov>
Component: Source CodeAssignee: Andrey Miroshnikov <andy.miroshnikov>
Status: CONFIRMED ---    
Severity: enhancement CC: libre-soc-bugs, lkcl, programmerjake
Priority: ---    
Version: unspecified   
Hardware: PC   
OS: Windows   
See Also: https://bugs.libre-soc.org/show_bug.cgi?id=1150
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:

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.