MCPcopy Create free account
hub / github.com/Wirasm/kild / worktreePath

Function worktreePath

engine/src/kild/worktree.ts:51–54  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

49export function worktreesRoot(): string {
50 return canonicalPath(path.join(kildHome(), 'worktrees'));
51}
52
53export function assertSafeBranch(branch: string): void {
54 if (branch.startsWith('-') || !/^[A-Za-z0-9._/-]+$/.test(branch)) {
55 throw new Error(`invalid branch name: ${branch}`);
56 }
57}

Callers 8

worktreeFunction · 0.90
server.tsFile · 0.90
spawnMethod · 0.90
worktree.test.tsFile · 0.90
sessions.test.tsFile · 0.90
createWorktreeFunction · 0.85
ensureWorktreeFunction · 0.85

Calls 3

assertSafeBranchFunction · 0.85
worktreesRootFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected