Versions 17 to 318
Lines 28–39 at 318 (were 28–38 at 17)
3132
32−/** The space to read: --draft (where "shared" means shared), else the one this agent is in. */
33+/** The space to read: --draft (where "shared" means shared), else the one this agent is in (shared, in a folder with no agent). */
35− if (named === undefined) return { agent };
3839
Lines 88–94 at 318 (were 87–93 at 17)
90− ? `Your view holds ${what}: ${spaceName(answer.draft)} at version ${answer.version}, with your unpublished changes.${missing.size > 0 ? ` ${missing.size} of them ${missing.size === 1 ? "is" : "are"} missing from this folder (abso sync --full writes them).` : ""}`
91+ ? `Your view holds ${what}: ${spaceName(answer.draft)} at version ${answer.version}, with your unpushed changes.${missing.size > 0 ? ` ${missing.size} of them ${missing.size === 1 ? "is" : "are"} missing from this folder (abso pull --full writes them).` : ""}`
Lines 142–166 at 318 (were 141–146 at 17)
143144
145+ // --agent: someone else's draft, to review it. What they've recorded, not their folder; nothing here is recorded.
149+ throw new UsageError("--agent shows that agent's unpushed changes: abso diff [file...] --agent <name>");
153+ const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
157+ : `${other}'s recorded, unpushed changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
160+ json: { agent: other, draft: answer.draft, base: answer.base, files: d.json, unmatched: unmatched(files) },
163+
Lines 180–186 at 318 (were 160–166 at 17)
160180
163− "--draft goes with two versions (abso diff <from> <to>); abso diff alone shows your own unpublished changes",
183+ "--draft goes with two versions (abso diff <from> <to>); abso diff alone shows your own unpushed changes",
Lines 190–197 at 318 (were 170–177 at 17)
170190 const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
173− ? `No unpublished changes${inPaths(only, "to")} in ${where}.`
174− : `Your unpublished changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
Lines 288–294 at 318 (were 268–274 at 17)
270290 if (v.droppedIn !== undefined) out.push(` dropped in version ${v.droppedIn}: shared no longer has these changes`);
271− if (v.originalMessage !== undefined) out.push(` amended; first published as: ${v.originalMessage}`);
291+ if (v.originalMessage !== undefined) out.push(` amended; first pushed as: ${v.originalMessage}`);
274294
Lines 331–338 at 318 (were 311–316 at 17)
314336 // The server filters by one file; a folder (or the whole folder) is filtered here, from a longer log.
315337 const folder = path !== undefined && (path === "" || /[/]$/.test(typed!) || isFolder(root, path));
316338 // --since, --by and --count (#37, Reporter's progress reports) filter here, from a longer log.
Lines 354–360 at 318 (were 332–337 at 17)
Lines 415–474 at 318 (were 392–403 at 17)
395− if (path === undefined && !filtering && oldest !== undefined && oldest.version > 0)
396− lines.push(`Older versions: abso log -n ${answer.versions.length + 50}`);
419+ lines.push(`Older versions: abso log${typed === undefined ? "" : ` ${typed}`} --before ${oldest.version}`);
421+ // A filter or a folder reads the newest FOLDER_LOG versions; say so when older ones were left unread.
424+ `Only the newest ${FOLDER_LOG} versions${before === undefined ? "" : ` below ${before}`} were read; --before ${raw.next} reads older ones.`,
400428
429+/** abso show <version>[:<file>] --without <versions>: what differs with them left out, or that file then. */
438+ if ("draft" in where && where.draft !== null) throw new UsageError("--without reads shared, not a named draft");
453+ if (same.text !== null) return { text: same.text, json: { ...same, without: answer.without } };
454+ } else if (file.after !== null) return { text: file.after, json: { ...file, without: answer.without } };
465+ changed.length === 0 ? `No file differs from version ${v}.` : `Compared with version ${v}: ${totals(changed)}.`,
471+
403474 throw new UsageError("show takes one version: abso show <version> or abso show <version>:<file>");
Lines 476–483 at 318 (were 405–410 at 17)
408481
Lines 507–513 at 318 (were 434–440 at 17)
437− * base; the other hunks stay (#37, Builder 2: drop my copy of a teammate's
Lines 563–569 at 318 (were 490–496 at 17)
493− // Some lines of a file: put those hunks back here, then record the file (#37, Builder 2).
Lines 644–655 at 318 (were 571–582 at 17)
574− ? "Nothing to restore: no unpublished changes there."
575− : `Discarded your unpublished changes to ${plural(restored.length + deleted.length, "file")}:`,
579− ? [`No unpublished changes to: ${untouched.join(", ")}`]
- MCP
- compare on this site's /mcp
- CLI
- abso diff 17 318 client/src/changes.ts --json
- JSON
- /christopher/abso-core/compare/17..318?file=client%2Fsrc%2Fchanges.ts&format=json