Skip to main content

Module branch_reset

Module branch_reset 

Source
Expand description

memstead branch-reset <mem> <target_sha> — the engine’s history- rewrite primitive exposed as a CLI subcommand.

Replay workflows that need to rewind a mem’s branch pointer to retry against a different upstream state consume this. Safety contract lives on Engine::branch_reset: no pushed commit can be discarded by the reset (the engine’s definition of “pushed” is reachability from any refs/remotes/* ref). Refusal surfaces as PUSHED_COMMITS_PROTECTED with the offending SHAs on stderr / details.pushed_shas.

Structs§

BranchResetArgs
memstead branch-reset <mem> <target_sha> arguments.

Functions§

run