Skip to main content

cleanup_worktree

Function cleanup_worktree 

Source
pub fn cleanup_worktree(info: &WorktreeInfo) -> Result<(), Error>
Expand description

Clean up a worktree and its branch.

Removes the worktree directory and deletes the associated branch.

§Arguments

  • info - Information about the worktree to clean up