MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / write

Function write

__tests__/linked-worktree-plain-root.test.ts:39–42  ·  view source on GitHub ↗
(file: string, content: string)

Source from the content-addressed store, hash-verified

37}
38
39function write(file: string, content: string): void {
40 fs.mkdirSync(path.dirname(file), { recursive: true });
41 fs.writeFileSync(file, content);
42}
43
44/** A repo at `dir` holding `a.ts`, with one commit. */
45function makeRepo(dir: string, source = 'export function onlyOnce() { return 1; }\n'): void {

Callers 2

makeRepoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected