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

Function worktreeBranchName

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

Source from the content-addressed store, hash-verified

221}
222
223export function worktreeBranchName(slug: string): string {
224 return `worktree-${flattenSlug(slug)}`
225}
226
227function worktreePathFor(repoRoot: string, slug: string): string {
228 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