pub const ADD_TABLE: &[OptionSpec];Expand description
What:
Rows of builtin_add_options (builtin/add.c:261-292),
in source order.
&[OptionSpec] is a borrowed table baked into the program.
Why:
Only --chmod,
--pathspec-from-file,
-U and --inter-hunk-context take a
value;
every other token after an option is a pathspec.
In TS you’d write (pseudocode):
export const ADD_TABLE = [row(UNREAD, 'n', 'dry-run', 'none', true), /* ... */] as const;