MCPcopy Create free account
hub / github.com/agent-tower/core / listWorktrees

Method listWorktrees

packages/server/src/git/worktree.manager.ts:102–105  ·  view source on GitHub ↗

* List all worktrees with parsed metadata. * Parses `git worktree list --porcelain` output.

()

Source from the content-addressed store, hash-verified

100 * Parses `git worktree list --porcelain` output.
101 */
102 async listWorktrees(): Promise<WorktreeInfo[]> {
103 const result = await execGit(this.repoPath, ['worktree', 'list', '--porcelain']);
104 return this.parseWorktreeListOutput(result);
105 }
106
107 /**
108 * Get branch divergence status (ahead/behind) relative to a base branch.

Callers 4

removeMethod · 0.95
listMethod · 0.95
findWorktreeForBranchMethod · 0.95

Calls 2

execGitFunction · 0.70

Tested by

no test coverage detected