pub fn changes_worktree_registrations(region: &[OsString]) -> boolExpand 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;