(&self)
| 329 | } |
| 330 | |
| 331 | async fn list_branches(&self) -> Result<Vec<WorkspaceGitBranch>> { |
| 332 | self.run_blocking_git(|root| { |
| 333 | Ok(crate::git::list_branches(&root)? |
| 334 | .into_iter() |
| 335 | .map(|branch| WorkspaceGitBranch { |
| 336 | name: branch.name, |
| 337 | is_current: branch.is_current, |
| 338 | }) |
| 339 | .collect()) |
| 340 | }) |
| 341 | .await |
| 342 | } |
| 343 | |
| 344 | async fn create_branch(&self, request: WorkspaceGitCreateBranchRequest) -> Result<()> { |
| 345 | self.run_blocking_git(move |root| { |
no test coverage detected