pub fn current_stack(
repo: &Repository,
head_branch: &str,
model: StackModel,
) -> Result<Option<Stack>>Expand description
Return the stack for the worktree whose HEAD is head_branch, or None if the branch
is not part of a tracked stack under model.
The returned Stack includes all branches reachable from the same stack root, not just
the ancestors of head_branch, so branching stacks are fully represented.