Skip to main content

insert_branch

Function insert_branch 

Source
pub fn insert_branch(branch: &str) -> Result<()>
Expand description

Insert a new empty branch directly above the current one, moving the current branch’s children onto it. The new branch shares the current tip, so descendants stay correctly based; commit to it, then restack to replay them. Any uncommitted changes ride onto the new branch, like new.