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

Function git

__tests__/git-index-currency.test.ts:42–42  ·  view source on GitHub ↗
(...args: string[])

Source from the content-addressed store, hash-verified

40 let root: string;
41 let cg: CodeGraph;
42 const git = (...args: string[]) => cp.execFileSync('git', args, { cwd: root, encoding: 'utf8', stdio: ['pipe', 'pipe', 'pipe'] });
43 const write = (name: string, symbol: string) => fs.writeFileSync(path.join(root, name), `export function ${symbol}() { return 1; }\n`);
44 const commit = () => { git('add', '-A'); git('commit', '-m', 'change'); return git('rev-parse', 'HEAD').trim(); };
45 const metadata = () => (cg as any).queries;

Callers 2

commitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected