Skip to main content

decide_branch_worktree

Function decide_branch_worktree 

Source
pub fn decide_branch_worktree(arguments: &[OsString]) -> BranchWorktreeDecision
Expand description

What: Decide from the argument list. &[OsString] borrows the arguments, already free of wrapper controls. Why: Only branch, checkout and switch can create a branch outside git worktree add. A region Git itself refuses creates nothing.

In TS you’d write (pseudocode):

function decideBranchWorktree(args: string[]): BranchWorktreeDecision;