pub fn remove_linked_worktree(
repo: &Repository,
path: &Path,
force: bool,
) -> Result<()>Expand description
Remove a linked worktree and its admin directory.
ยงErrors
Returns WorktreeError::NotRegistered for an unknown path,
WorktreeError::MainWorktree for the main worktree, and, unless force is set,
WorktreeError::Locked or WorktreeError::HasLocalChanges.