{"draft":null,"from":142,"to":143,"files":[{"path":"worker/project/view-changes.ts","added":5,"removed":5,"diff":"--- a/worker/project/view-changes.ts\n+++ b/worker/project/view-changes.ts\n@@ -1,9 +1,9 @@\n-import type { View } from \"../../src/engine/index.ts\";\n+import type { ReadView } from \"../../src/engine/index.ts\";\n import { ProjectError } from \"./project-error.ts\";\n import type { FileChange, Mode, Modes } from \"./project-types.ts\";\n \n /** The listed files whose text differs between two views, before and after. */\n-export function changesBetween(before: View, after: View, files: Iterable<string>): FileChange[] {\n+export function changesBetween(before: ReadView, after: ReadView, files: Iterable<string>): FileChange[] {\n \tconst out: FileChange[] = [];\n \tfor (const path of [...new Set(files)].toSorted()) {\n \t\tconst b = before.hasFile(path) ? before.text(path) : null;\n@@ -19,7 +19,7 @@\n }\n \n /** Whether a file differs between two views: its text, its mode, or its blob (what changesBetween lists). */\n-export function differs(before: View, after: View, path: string): boolean {\n+export function differs(before: ReadView, after: ReadView, path: string): boolean {\n \tconst had = before.hasFile(path);\n \tif (had !== after.hasFile(path)) return true;\n \tif (had && !before.sameText(path, after)) return true;\n@@ -29,7 +29,7 @@\n }\n \n /** A file's executable bit and link target, before and after, when either changed. */\n-export function modeChange(before: View, after: View, path: string): { before: Mode; after: Mode } | undefined {\n+export function modeChange(before: ReadView, after: ReadView, path: string): { before: Mode; after: Mode } | undefined {\n \tconst b = before.attrs(path);\n \tconst a = after.attrs(path);\n \tif (b.exec === a.exec && b.link === a.link) return undefined;\n@@ -37,7 +37,7 @@\n }\n \n /** Every executable file and link in a view. */\n-export function modesOf(view: View): Modes {\n+export function modesOf(view: ReadView): Modes {\n \tconst out: Modes = {};\n \tfor (const path of view.paths()) {\n \t\tconst a = view.attrs(path);"}],"unmatched":[]}