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

Function write

__tests__/git-ignored-dirs-scope.test.ts:37–40  ·  view source on GitHub ↗
(file: string, content: string)

Source from the content-addressed store, hash-verified

35}
36
37function write(file: string, content: string): void {
38 fs.mkdirSync(path.dirname(file), { recursive: true });
39 fs.writeFileSync(file, content);
40}
41
42/** A repo at `dir` with `tracked` committed, then `untracked` written for `.gitignore` to hide. */
43function makeRepo(dir: string, tracked: Record<string, string>, untracked: Record<string, string> = {}): void {

Callers 2

makeRepoFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected