Skip to main content

reset_worktree_to_base

Function reset_worktree_to_base 

Source
pub fn reset_worktree_to_base(
    worktree_path: &Path,
    base_branch: &str,
) -> Result<()>
Expand description

Reset a worktree to point at its base branch. Used to clean up after a cherry-pick merge has made the task branch redundant.