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

Function worktreeBranchName

src/utils/worktree.ts:221–223  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

219}
220
221export function worktreeBranchName(slug: string): string {
222 return `worktree-${flattenSlug(slug)}`
223}
224
225function worktreePathFor(repoRoot: string, slug: string): string {
226 return join(worktreesDir(repoRoot), flattenSlug(slug))

Callers 4

setupFunction · 0.85
getOrCreateWorktreeFunction · 0.85
execIntoTmuxWorktreeFunction · 0.85

Calls 1

flattenSlugFunction · 0.85

Tested by

no test coverage detected