Skip to main content

CHECKOUT_TABLE

Constant CHECKOUT_TABLE 

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

What: git checkout: checkout_options, then the common, switch-branch and checkout-path groups. Some(b'b') with None is an option that has only a letter. Why: -b and -B take the branch name as a value; --track and --recurse-submodules take an attached value only.

In TS you’d write (pseudocode):

export const CHECKOUT_TABLE = [row(NEW_BRANCH, 'b', undefined, 'required', true), /* ... */] as const;