Expand description
Whether a git worktree invocation creates or moves a worktree.
What:
The one fact the wrapper needs about git worktree:
whether the invocation
creates or moves a worktree.
Why:
Only git worktree add and git worktree move are sources of ignored-state
synchronization,
and the worktree-copy opt-out is written after that second word.
In TS you’d write (pseudocode):
// changesWorktreeRegistrations(['add', '../topic']) === trueFunctions§
- changes_
worktree_ registrations - What:
Whether the tokens after
worktreestart withaddormove.&[OsString]borrows those tokens;boolis 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.