Same file, but written to since we last looked.
(a: FileIdentity | null, b: FileIdentity | null)
| 84 | |
| 85 | /** Same file, but written to since we last looked. */ |
| 86 | function 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 |