Skip to main content

RESET_TABLE

Constant RESET_TABLE 

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

What: Rows of options[] in cmd_reset (builtin/reset.c:350-382), in source order. &[OptionSpec] is a borrowed table baked into the program. Why: The five modes are PARSE_OPT_NONEG; --recurse-submodules takes an optional value, so a token after it is a revision or path.

In TS you’d write (pseudocode):

export const RESET_TABLE = [row(UNREAD, 'q', 'quiet', 'none', true), /* ... */] as const;