Versions 175 to 318
Lines 25–44 at 318 (were 25–43 at 175)
2727
28−/** Each file as it is on one side of a change (`before`), applied to the snapshot. */
29−function applyBefore(s: Snapshot, changes: readonly FileChange[]): void {
28+/** Each file as it is on one side of a change (`before` unless said), applied to the snapshot. */
29+export function applySide(s: Snapshot, changes: readonly FileChange[], side: "before" | "after" = "before"): void {
32− const blob = f.blob?.before ?? null;
34− else if (f.before !== null) s.files.set(f.path, { text: f.before });
40− if (f.mode) s.modes.set(f.path, { exec: f.mode.before.exec === true, link: f.mode.before.link ?? null });
41+ if (f.mode) s.modes.set(f.path, { exec: f.mode[side].exec === true, link: f.mode[side].link ?? null });
4344
Lines 57–65 at 318 (were 56–64 at 175)
59− applyBefore(s, diff.files);
61− if (version !== diff.base) applyBefore(s, (await api.compare(version, diff.base, where)).files);
6465
- MCP
- compare on this site's /mcp
- CLI
- abso diff 175 318 client/src/at.ts --json
- JSON
- /christopher/abso-core/compare/175..318?file=client%2Fsrc%2Fat.ts&format=json