Skip to main content

STATUS_TABLE

Constant STATUS_TABLE 

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

What: Rows of builtin_status_options (builtin/commit.c:1548-1599), in source order. &[OptionSpec] is a borrowed table baked into the program. Why: Four rows take an optional value (PARSE_OPT_OPTARG), so a token after them is a pathspec, not their value.

In TS you’d write (pseudocode):

export const STATUS_TABLE = [row(UNREAD, 'v', 'verbose', 'none', true), /* ... */] as const;