File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
engine/cmd/cli/commands/branch Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,15 @@ func create(cliCtx *cli.Context) error {
181
181
182
182
branchName := cliCtx .Args ().First ()
183
183
184
+ baseBranch := cliCtx .String ("parent-branch" )
185
+
186
+ if baseBranch == "" {
187
+ baseBranch = getBaseBranch (cliCtx )
188
+ }
189
+
184
190
branchRequest := types.BranchCreateRequest {
185
191
BranchName : branchName ,
186
- BaseBranch : getBaseBranch ( cliCtx ) ,
192
+ BaseBranch : baseBranch ,
187
193
}
188
194
189
195
branch , err := dblabClient .CreateBranch (cliCtx .Context , branchRequest )
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ func List() []*cli.Command {
20
20
Name : "delete" ,
21
21
Aliases : []string {"d" },
22
22
},
23
+ & cli.StringFlag {
24
+ Name : "parent-branch" ,
25
+ },
23
26
},
24
27
ArgsUsage : "BRANCH_NAME" ,
25
28
},
You can’t perform that action at this time.
0 commit comments