Skip to main content

SWITCH_TABLE

Constant SWITCH_TABLE 

Source
pub const SWITCH_TABLE: &[OptionSpec];
Expand description

What: git switch: switch_options, then the common and switch-branch groups. Why: switch has no path options; -c and -C have long names and can be negated.

In TS you’d write (pseudocode):

export const SWITCH_TABLE = [row(NEW_BRANCH, 'c', 'create', 'required', true), /* ... */] as const;