(&self)
| 411 | #[async_trait] |
| 412 | impl WorkspaceGitWorktreeProvider for LocalWorkspaceBackend { |
| 413 | async fn list_worktrees(&self) -> Result<Vec<WorkspaceGitWorktree>> { |
| 414 | self.run_blocking_git(|root| { |
| 415 | Ok(crate::git::list_worktrees(&root)? |
| 416 | .into_iter() |
| 417 | .map(|worktree| WorkspaceGitWorktree { |
| 418 | path: worktree.path, |
| 419 | branch: worktree.branch, |
| 420 | is_bare: worktree.is_bare, |
| 421 | is_detached: worktree.is_detached, |
| 422 | }) |
| 423 | .collect()) |
| 424 | }) |
| 425 | .await |
| 426 | } |
| 427 | |
| 428 | async fn create_worktree( |
| 429 | &self, |
nothing calls this directly
no test coverage detected