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

Function worktreeName

engine/src/kild/worktree.ts:45–47  ·  view source on GitHub ↗
(branch: string)

Source from the content-addressed store, hash-verified

43 const parent = path.dirname(p);
44 // At the filesystem root `dirname` is a fixed point; stop rather than recurse forever.
45 return parent === p ? p : path.join(canonicalPath(parent), path.basename(p));
46 }
47}
48
49export function worktreesRoot(): string {
50 return canonicalPath(path.join(kildHome(), 'worktrees'));

Callers 2

pushFunction · 0.85
doPruneMergedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected