Skip to main content

Module command_stash_table

Module command_stash_table 

Source
Expand description

The Git 2.56.0 option tables of every git stash subcommand. What: The option tables of every git stash subcommand in Git 2.56.0. Why: git stash dispatches to subcommands that each parse their own options with their own flags (builtin/stash.c); whether a token is an option value depends on which subcommand reads it.

In TS you’d write (pseudocode):

// export const STASH_PUSH_TABLE: readonly OptionSpec[] = [ ... ];

Constants§

STASH_APPLY_TABLE
git stash apply (apply_stash, builtin/stash.c:783-793).
STASH_DROP_TABLE
git stash drop (drop_stash, builtin/stash.c:865-867).
STASH_EMPTY_TABLE
git stash clear, branch, list and import declare no options.
STASH_EXPORT_TABLE
git stash export (export_stash, builtin/stash.c:2434-2440).
STASH_KEEP_UNKNOWN_MODE
PARSE_OPT_KEEP_UNKNOWN_OPT: list, show and store forward unknown options.
STASH_PLAIN_MODE
Flags 0 or only PARSE_OPT_KEEP_DASHDASH: push, save, apply, pop, drop, branch, export and import.
STASH_POP_TABLE
git stash pop (pop_stash, builtin/stash.c:889-893).
STASH_PUSH_TABLE
git stash push (push_stash, builtin/stash.c:1920-1940).
STASH_SAVE_TABLE
git stash save (save_stash, builtin/stash.c:2027-2045): push without the pathspec file options.
STASH_SHOW_TABLE
git stash show (show_stash, builtin/stash.c:1041-1048).
STASH_STOP_MODE
PARSE_OPT_STOP_AT_NON_OPTION: clear, and push when no subcommand was written (builtin/stash.c:1945-1948).
STASH_STORE_TABLE
git stash store (store_stash, builtin/stash.c:1162-1166).