pub fn enumerate_stacks(
repo: &Repository,
model: StackModel,
) -> Result<Vec<Stack>>Expand description
Return all stacks present in metadata, one per connected component.
Each returned Stack corresponds to one potential StackGroup — the same (trunk, sorted diffs) key used by group_by_stack. Used by the list command to surface
stacks that have no checked-out worktrees.