Versions 175 to 318
Lines 9–15 at 318 (were 9–15 at 175)
12−import { changesBetween } from "./view-changes.ts";
1313
Lines 66–83 at 318 (were 66–77 at 175)
6767 if (![...p.atoms, ...(p.dropped ?? [])].some((id) => g.filesOf(id).some((f) => sources.has(f)))) continue;
69+ // With a path: only the versions that changed that file (its history), under its name then. Their files first, and
70+ // the whole entry (every atom of the version read) only for those (abso Capacity): a file's history read every
72− // With a path: only the versions that changed that file (its history), under its name then.
74− else if (entry.files.includes(nameAt(v))) versions.push(nameAt(v) === path ? entry : { ...entry, path: nameAt(v) });
7682 const next = v >= 0 && versions.length > 0 ? versions[versions.length - 1]!.version : undefined;
7783 const movedFrom = names.slice(0, -1).map((n, i) => ({ path: names[i + 1]!.path, version: n.since }));
Lines 244–302 at 318 (were 238–259 at 175)
240246
241−/** Every file that differs between two versions of shared (or a named draft), before (at `from`) and after (at `to`). */
242−export function compare(
248+ * fileAt for exactly this spelling, from the file's own lines (abso Capacity, 2026-10-17): no spelling lookup and no
249+ * list of the version's files. fileAt's hasFile answers from the version's whole path list, folded from version 0
250+ * when nothing's kept, and a spelling it doesn't find reads every known path. A name nothing ever wrote is one read.
266+ // hasFile's own test, without its path list: kept while empty, a link, a binary, or a visible line.
267+ const exists = attrs.exists || attrs.link !== null || attrs.blob !== null || view.lines(path).length > 0;
275+
276+/** The files that may differ between two versions, and both views: compare's and compareSummary's ground. */
246− options: { draft?: string | null; agent?: string } = {},
247−): { from: number; to: number; files: FileChange[] } {
252− const a = host.at(space, from);
253− const b = host.at(space, to);
290+ // A stored writer keeps each shared version's changed files (version-files.ts, abso Capacity): every file that
291+ // differs between two versions changed in one between them, so those lists are the candidates, not every atom
Lines 309–339 at 318 (were 266–274 at 175)
314+
315+/** Every file that differs between two versions of shared (or a named draft), before (at `from`) and after (at `to`). */
271325
326+/** compare's files as each one's size and SHA-256 before and after, not its texts (abso issue 680). */
336+
272337/** A version of shared (or of a named draft) as a ReadView, for reading lines (blame at a version). */
- MCP
- compare on this site's /mcp
- CLI
- abso diff 175 318 worker/project/version-log.ts --json
- JSON
- /christopher/abso-core/compare/175..318?file=worker%2Fproject%2Fversion-log.ts&format=json