MCPcopy Create free account
hub / github.com/Noumena-Network/code / worktreeBranchName

Function worktreeBranchName

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

Source from the content-addressed store, hash-verified

231}
232
233export function worktreeBranchName(slug: string): string {
234 return `worktree-${flattenSlug(slug)}`
235}
236
237function worktreePathFor(repoRoot: string, slug: string): string {
238 return join(getWorktreesDir(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