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

Function git

__tests__/sparse-checkout.test.ts:107–108  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

105 let root: string;
106 let cg: CodeGraph | undefined;
107 const git = (...args: string[]) =>
108 cp.execFileSync('git', args, { cwd: root, encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] });
109 const write = (rel: string, body = `class ${path.basename(rel, path.extname(rel))} {}\n`) => {
110 fs.mkdirSync(path.dirname(path.join(root, rel)), { recursive: true });
111 fs.writeFileSync(path.join(root, rel), body);

Callers 2

sparseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected