Skip to main content

register_branch

Function register_branch 

Source
pub fn register_branch(
    repo: &Repository,
    branch: &str,
    base_branch: &str,
) -> Result<()>
Expand description

Append branch to the canonical gh-stack file’s stack that currently ends at base_branch. Callers gate this on StackModel::GhStack themselves (see workon new’s hook), matching link_worktree. See stack/gh_stack.rs’s register_branch for the locking, CAS, and target-selection rules.