pub fn worktree_remove(
repo_path: &Path,
worktree: &Path,
force: bool,
) -> Result<(), String>Expand description
Removes the worktree checked out at worktree, deleting its directory.
Without force, git refuses a worktree with modified or untracked files, or
a locked one, and nothing is touched. With force, --force is passed
twice, which discards those changes and overrides the lock.