(
&self,
request: WorkspaceGitRemoveWorktreeRequest,
)
| 457 | } |
| 458 | |
| 459 | async fn remove_worktree( |
| 460 | &self, |
| 461 | request: WorkspaceGitRemoveWorktreeRequest, |
| 462 | ) -> Result<WorkspaceGitWorktreeMutation> { |
| 463 | let path = PathBuf::from(request.path); |
| 464 | let display_path = path.display().to_string(); |
| 465 | let force = request.force; |
| 466 | |
| 467 | self.run_blocking_git(move |root| crate::git::remove_worktree(&root, &path, force)) |
| 468 | .await?; |
| 469 | |
| 470 | Ok(WorkspaceGitWorktreeMutation { |
| 471 | path: display_path, |
| 472 | branch: None, |
| 473 | }) |
| 474 | } |
| 475 | } |
| 476 | |
| 477 | #[async_trait] |
nothing calls this directly
no test coverage detected