Skip to main content

PUSH_TABLE

Constant PUSH_TABLE 

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

What: Rows of options[] in cmd_push (builtin/push.c:707-743), in source order. &[OptionSpec] is a borrowed table baked into the program. Why: --branches is an OPT_ALIAS of --all; the two names share no prefix, so the alias needs no special ambiguity handling and is a row of its own.

In TS you’d write (pseudocode):

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