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

Method getStaleFiles

src/db/queries.ts:4456–4462  ·  view source on GitHub ↗

* Get files that need re-indexing (hash changed)

(currentHashes: Map<string, string>)

Source from the content-addressed store, hash-verified

4454 * Get files that need re-indexing (hash changed)
4455 */
4456 getStaleFiles(currentHashes: Map<string, string>): FileRecord[] {
4457 const files = this.getAllFiles();
4458 return files.filter((f) => {
4459 const currentHash = currentHashes.get(f.path);
4460 return currentHash && currentHash !== f.contentHash;
4461 });
4462 }
4463
4464 // ===========================================================================
4465 // Unresolved References

Callers

nothing calls this directly

Calls 2

getAllFilesMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected