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

Method getStaleFiles

src/db/queries.ts:4345–4351  ·  view source on GitHub ↗

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

(currentHashes: Map<string, string>)

Source from the content-addressed store, hash-verified

4343 * Get files that need re-indexing (hash changed)
4344 */
4345 getStaleFiles(currentHashes: Map<string, string>): FileRecord[] {
4346 const files = this.getAllFiles();
4347 return files.filter((f) => {
4348 const currentHash = currentHashes.get(f.path);
4349 return currentHash && currentHash !== f.contentHash;
4350 });
4351 }
4352
4353 // ===========================================================================
4354 // Unresolved References

Callers

nothing calls this directly

Calls 2

getAllFilesMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected