(&self)
| 388 | #[async_trait] |
| 389 | impl WorkspaceGitStashProvider for LocalWorkspaceBackend { |
| 390 | async fn list_stashes(&self) -> Result<Vec<WorkspaceGitStash>> { |
| 391 | self.run_blocking_git(|root| { |
| 392 | Ok(crate::git::list_stashes(&root)? |
| 393 | .into_iter() |
| 394 | .map(|stash| WorkspaceGitStash { |
| 395 | index: stash.index, |
| 396 | message: stash.message, |
| 397 | }) |
| 398 | .collect()) |
| 399 | }) |
| 400 | .await |
| 401 | } |
| 402 | |
| 403 | async fn stash(&self, request: WorkspaceGitStashRequest) -> Result<()> { |
| 404 | self.run_blocking_git(move |root| { |
no test coverage detected