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

Function sameContent

src/ui-server/api/session.ts:86–94  ·  view source on GitHub ↗

Same file, but written to since we last looked.

(a: FileIdentity | null, b: FileIdentity | null)

Source from the content-addressed store, hash-verified

84
85/** Same file, but written to since we last looked. */
86function sameContent(a: FileIdentity | null, b: FileIdentity | null): boolean {
87 if (a === null || b === null) return false;
88 return (
89 a.size === b.size &&
90 a.mtimeMs === b.mtimeMs &&
91 a.walSize === b.walSize &&
92 a.walMtimeMs === b.walMtimeMs
93 );
94}
95
96/**
97 * Guidance shown when there is no index to read. Deliberately the same three

Callers 1

acquireMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected