Skip to main content

assemble_changesets

Function assemble_changesets 

Source
pub fn assemble_changesets(
    repo: &Repository,
    head_branch: &str,
    model: StackModel,
) -> Result<Vec<Changeset>>
Expand description

Assemble the ordered (base → head) changesets for the worktree whose HEAD is head_branch, under the given StackModel.

See the module docs for the per-model walk semantics. Errors distinguish a genuinely broken reference or stack-metadata snapshot (bad ref, unresolvable recorded revision, no upstream) from a valid empty result (Ok(vec![]), e.g. a trunk-only worktree under Git with a clean tree).