Skip to main content

rename_branch

Function rename_branch 

Source
pub fn rename_branch(old: &str, new: &str, dry_run: bool) -> Result<()>
Expand description

Rename a branch and keep the stack intact. Git moves the branch’s own metadata with the rename; children pointing at the old name are retargeted here.