Skip to main content

Crate git_stk

Crate git_stk 

Source

Modules§

cli
commands
One module per CLI command. Every command is a clap Args struct that implements Run, so each has the same shape: parse, then run().
completions
git
lock
A coarse advisory lock so two git-stk processes never run state-mutating commands at once. Git locks its own index and refs, but not git-stk’s multi-step orchestration (snapshot, rebases, metadata, provider calls), so a concurrent run could clobber the undo snapshot or half-rewrite the stack.
notes
The managed blocks in review descriptions: the user’s description, the issue-closing link, and the stack-overview ledger ([ledger]), all built on marker-delimited [sections].
prompt
providers
settings
Every stk-owned git config key and its resolution logic, in one place.
setup
stack
Stack metadata: the branch.<name>.stkParent/stkBase annotations and the structural queries built on them. Navigation lives in [nav], the rebase engine in restack.
style
Semantic terminal styles. Styled lines must be printed through anstream::println!/eprintln!, which strip color for pipes, NO_COLOR, and consoles that cannot render it.
upgrade