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

Function sameFile

src/ui-server/api/session.ts:78–83  ·  view source on GitHub ↗
(a: FileIdentity | null, b: FileIdentity | null)

Source from the content-addressed store, hash-verified

76}
77
78function sameFile(a: FileIdentity | null, b: FileIdentity | null): boolean {
79 if (a === null || b === null) return false;
80 // `ino` is 0 on a few Windows filesystems; birthtime alone still catches a
81 // recreate there, and a false "changed" only costs one reopen.
82 return a.ino === b.ino && a.birthtimeMs === b.birthtimeMs;
83}
84
85/** Same file, but written to since we last looked. */
86function sameContent(a: FileIdentity | null, b: FileIdentity | null): boolean {

Callers 1

acquireMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected