Skip to main content

changes_worktree_registrations

Function changes_worktree_registrations 

Source
pub fn changes_worktree_registrations(region: &[OsString]) -> bool
Expand description

What: Whether the tokens after worktree start with add or move. &[OsString] borrows those tokens; bool is true or false. Why: The caller decides from this alone, without reading the subcommand’s options, so a mistaken option table can never hide a worktree creation.

In TS you’d write (pseudocode):

function changesWorktreeRegistrations(region: string[]): boolean;