Skip to main content

current_stack_branches

Function current_stack_branches 

Source
pub fn current_stack_branches(branch: &str) -> Result<Vec<String>>
Expand description

Every branch in the stack branch belongs to, trunk excluded: the whole subtree under the stack’s base (so fork siblings are included too), unlike stack_line which is only branch’s own line. The base is the bottom of branch’s line - its topmost non-trunk ancestor - so sibling stacks that merely share the trunk are left out, exactly as they are for stack_line. For an unanchored stack the base is its real root branch, itself stacked, so it stays in.