MCPcopy Index your code
hub / github.com/AI45Lab/Code / list_stashes

Method list_stashes

core/src/workspace/local.rs:390–401  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

388#[async_trait]
389impl 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| {

Callers 1

stashMethod · 0.45

Calls 2

list_stashesFunction · 0.85
run_blocking_gitMethod · 0.80

Tested by

no test coverage detected