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

Function changes

__tests__/status-sparse-checkout.test.ts:52–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 const metadata = (key: string): string | null => (cg as any).queries.getMetadata(key);
51 const indexedPaths = (): string[] => (cg as any).queries.getAllFilePaths().sort();
52 const changes = () => {
53 const found = cg!.getChangedFiles();
54 return { added: [...found.added].sort(), modified: [...found.modified].sort(), removed: [...found.removed].sort() };
55 };
56 /** The premise of every case here: as far as git can tell, nothing happened. */
57 const gitSeesNothing = () => expect(git('status', '--porcelain')).toBe('');
58 /** The git commands run since the last clear, each as one string. */

Callers 1

Calls 1

getChangedFilesMethod · 0.45

Tested by

no test coverage detected