Expand description
Stack metadata: the branch.<name>.stkParent/stkBase annotations and
the structural queries built on them. Navigation lives in [nav], the
rebase engine in restack.
Functions§
- abort_
restack - adopt_
branch - base_
for_ branch - behind_
parent_ hint - A restack nudge when
branchis missing commits from its parent’s tip. Local-only; a missing parent yields nothing. - branch_
and_ descendants - branch_
parents - (branch, parent) pairs for the branches that have a stack parent; branches without one are skipped.
- checkout_
bottom - Check out the bottom of the current stack: the branch just above the trunk. From the trunk itself, a single stacked child is unambiguous.
- checkout_
child - checkout_
parent - checkout_
top - Check out the leaf of the current stack, following single children. A
fork is ambiguous, like
upwithout a branch. - children_
for_ branch - continue_
restack - create_
branch - detach_
branch - parent_
for_ branch - print_
children - print_
parent - print_
stack - record_
base - Record the fork point between a branch and its parent (best effort; e.g. unrelated histories have no merge base, which is not an error here).
- rename_
branch - Rename a branch and keep the stack intact. Git moves the branch’s own metadata with the rename; children pointing at the old name are retargeted here.
- restack
- set_
base_ for_ branch - set_
parent_ for_ branch - stack_
root - The root of the stack containing
branch(the base everything sits on). - trunk_
branch - The trunk branch: the remote’s default branch when known locally, otherwise a conventional name that exists.
- unset_
base_ for_ branch - unset_
parent_ for_ branch