MCPcopy
hub / github.com/claude-code-best/claude-code / worktreePathFor

Function worktreePathFor

src/utils/worktree.ts:225–227  ·  view source on GitHub ↗
(repoRoot: string, slug: string)

Source from the content-addressed store, hash-verified

223}
224
225function worktreePathFor(repoRoot: string, slug: string): string {
226 return join(worktreesDir(repoRoot), flattenSlug(slug))
227}
228
229/**
230 * Creates a new git worktree for the given slug, or resumes it if it already exists.

Callers 2

getOrCreateWorktreeFunction · 0.85
execIntoTmuxWorktreeFunction · 0.85

Calls 2

worktreesDirFunction · 0.85
flattenSlugFunction · 0.85

Tested by

no test coverage detected