MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / worktreePathFor

Function worktreePathFor

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

Source from the content-addressed store, hash-verified

225}
226
227function worktreePathFor(repoRoot: string, slug: string): string {
228 return join(worktreesDir(repoRoot), flattenSlug(slug))
229}
230
231/**
232 * 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