MCPcopy Create free account
hub / github.com/AI45Lab/Code / list_stashes

Method list_stashes

core/src/workspace/remote_git.rs:652–662  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

650#[async_trait]
651impl 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(

Callers 1

Calls 1

post_jsonMethod · 0.80

Tested by

no test coverage detected