{"draft":null,"from":243,"to":244,"files":[{"path":"worker/project/version-log.ts","added":28,"removed":13,"diff":"--- a/worker/project/version-log.ts\n+++ b/worker/project/version-log.ts\n@@ -238,15 +238,13 @@\n \t};\n }\n \n-/** Every file that differs between two versions of shared (or a named draft), before (at `from`) and after (at `to`). */\n-export function compare(\n+/** The files that may differ between two versions, and both views: compare's and compareSummary's ground. */\n+function compared(\n \thost: LogHost,\n \tfrom: number,\n \tto: number,\n-\toptions: { draft?: string | null; agent?: string; summary?: boolean } = {},\n-):\n-\t| { from: number; to: number; files: FileChange[] }\n-\t| { from: number; to: number; summary: true; files: ReturnType<typeof summariesBetween> } {\n+\toptions: { draft?: string | null; agent?: string },\n+): { before: ReadView; after: ReadView; files: Set<string> } {\n \thost.needInit();\n \tconst space = host.spaceFor(options);\n \thost.checkVersion(space, from);\n@@ -254,18 +252,13 @@\n \tconst before = host.viewAt(space, from);\n \tconst after = host.viewAt(space, to);\n \tconst files = new Set<string>();\n-\t// With summary, each file's size and SHA-256 instead of its texts (abso issue 680).\n-\tconst answer = (paths: Iterable<string>) =>\n-\t\toptions.summary\n-\t\t\t? { from, to, summary: true as const, files: summariesBetween(before, after, paths) }\n-\t\t\t: { from, to, files: changesBetween(before, after, paths) };\n \t// A stored writer keeps each shared version's changed files (version-files.ts, abso Capacity): every file that\n \t// differs between two versions changed in one between them, so those lists are the candidates, not every atom\n \t// either set holds.\n \tif (space.name === SHARED && host.graph.packedFiles) {\n \t\tfor (let v = Math.min(from, to) + 1; v <= Math.max(from, to); v++)\n \t\t\tfor (const file of host.paths.versionFiles(space, v)) files.add(file);\n-\t\treturn answer(files);\n+\t\treturn { before, after, files };\n \t}\n \tconst a = host.at(space, from);\n \tconst b = host.at(space, to);\n@@ -281,9 +274,31 @@\n \t\t))\n \t\t\tfiles.add(file);\n \t}\n-\treturn answer(files);\n+\treturn { before, after, files };\n }\n \n+/** Every file that differs between two versions of shared (or a named draft), before (at `from`) and after (at `to`). */\n+export function compare(\n+\thost: LogHost,\n+\tfrom: number,\n+\tto: number,\n+\toptions: { draft?: string | null; agent?: string } = {},\n+): { from: number; to: number; files: FileChange[] } {\n+\tconst { before, after, files } = compared(host, from, to, options);\n+\treturn { from, to, files: changesBetween(before, after, files) };\n+}\n+\n+/** compare's files as each one's size and SHA-256 before and after, not its texts (abso issue 680). */\n+export function compareSummary(\n+\thost: LogHost,\n+\tfrom: number,\n+\tto: number,\n+\toptions: { draft?: string | null; agent?: string } = {},\n+): { from: number; to: number; summary: true; files: ReturnType<typeof summariesBetween> } {\n+\tconst { before, after, files } = compared(host, from, to, options);\n+\treturn { from, to, summary: true, files: summariesBetween(before, after, files) };\n+}\n+\n /** A version of shared (or of a named draft) as a ReadView, for reading lines (blame at a version). */\n export function viewAt(\n \thost: LogHost,"}],"unmatched":[]}