(&self)
| 650 | #[async_trait] |
| 651 | impl WorkspaceGitStashProvider for RemoteGitBackend { |
| 652 | async fn list_stashes(&self) -> Result<Vec<WorkspaceGitStash>> { |
| 653 | let resp: StashesResp = self.post_json("stashes", &EmptyReq).await?; |
| 654 | Ok(resp |
| 655 | .stashes |
| 656 | .into_iter() |
| 657 | .map(|s| WorkspaceGitStash { |
| 658 | index: s.index, |
| 659 | message: s.message, |
| 660 | }) |
| 661 | .collect()) |
| 662 | } |
| 663 | |
| 664 | async fn stash(&self, request: WorkspaceGitStashRequest) -> Result<()> { |
| 665 | self.post_unit( |
no test coverage detected