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,listandimportdeclare 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,showandstoreforward unknown options.- STASH_
PLAIN_ MODE - Flags
0or onlyPARSE_OPT_KEEP_DASHDASH:push,save,apply,pop,drop,branch,exportandimport. - 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):pushwithout 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, andpushwhen no subcommand was written (builtin/stash.c:1945-1948).- STASH_
STORE_ TABLE git stash store(store_stash, builtin/stash.c:1162-1166).