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

Method list_worktrees

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

Source from the content-addressed store, hash-verified

411#[async_trait]
412impl WorkspaceGitWorktreeProvider for LocalWorkspaceBackend {
413 async fn list_worktrees(&self) -> Result<Vec<WorkspaceGitWorktree>> {
414 self.run_blocking_git(|root| {
415 Ok(crate::git::list_worktrees(&root)?
416 .into_iter()
417 .map(|worktree| WorkspaceGitWorktree {
418 path: worktree.path,
419 branch: worktree.branch,
420 is_bare: worktree.is_bare,
421 is_detached: worktree.is_detached,
422 })
423 .collect())
424 })
425 .await
426 }
427
428 async fn create_worktree(
429 &self,

Callers

nothing calls this directly

Calls 2

list_worktreesFunction · 0.85
run_blocking_gitMethod · 0.80

Tested by

no test coverage detected