Skip to main content

set_branch_base

Function set_branch_base 

Source
pub fn set_branch_base(branch: &str, base: &str, verbose: bool) -> Result<()>
Expand description

Record the base branch a branch is stacked on (branch.<name>.gwBase).

Lets the workflow know a branch is stacked before its PR exists, so gw status can suggest gh pr create -B <base>. Git drops the whole [branch "<name>"] section when the branch is deleted, so this needs no explicit cleanup on gw cleanup.