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

Function commit

__tests__/index-gone-tracked-files.test.ts:35–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 fs.writeFileSync(path.join(root, rel), `def ${name}():\n return 1\n`);
34 };
35 const commit = () => { git('add', '-A'); git('commit', '-qm', 'fixture'); };
36 const readErrors = (r: IndexResult) => r.errors.filter((e) => e.code === 'read_error').map((e) => e.filePath);
37 const metadata = (key: string): string | null => (cg as any).queries.getMetadata(key);
38 const indexedPaths = (): string[] => (cg as any).queries.getAllFilePaths().sort();

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected