summaryrefslogtreecommitdiff
path: root/core/Core.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-21 17:23:40 -0300
committerGabriel Schneider <[email protected]>2026-11-21 17:23:40 -0300
commit3dc3e796a9b69ec35a8a920aa12f3e04e61a0ab5 (patch)
treea62c9dd534adb640fca44b963503c93549efe821 /core/Core.zig
parentbf813d0a06eb57bc8db0abcfe3dbb1f3e12f5834 (diff)
parent8152cf383c8296be29e80175b57e40f8d41049bf (diff)
downloadpardes-3dc3e796a9b69ec35a8a920aa12f3e04e61a0ab5.tar.gz
pardes-3dc3e796a9b69ec35a8a920aa12f3e04e61a0ab5.zip
integration: `Changes` and its lanes on the gathered line: pardes-merge52 (`pnmtmksv`: plain mode fixed, the narrow view rule, the soak's own faults) and pardes-layers-3 (`xzmopyqr` on `pvtvmpzx`, on pardes-merge50: `Changes [revset]` pins a revset's changes on a file's pane: a lane a change after the line number, nested ones a level to the right on their rows only, a line added whole green across; with it off nothing is paid: the revset and jj's answers are the session's, a view holds one bit (P45): the 121 counts within 0.1%); no conflict; core-test 898/1058 (160 skipped), shell-test 1100/1103; its gate: .scratch/sketch/reorg/merge53, the numbers in PARDES.md (2026-11-21)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/Core.zig')
-rw-r--r--core/Core.zig7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Core.zig b/core/Core.zig
index d2cfadfc..177a6e78 100644
--- a/core/Core.zig
+++ b/core/Core.zig
@@ -355,6 +355,10 @@ lsp_ask: Ask = .{},
pipe: Pipe = .{},
/// A query pane's Grep, and its Find's listing, on a worker (Stream.zig).
stream: Stream = .{},
+/// What jj answered for each pane's `Changes` (jj.zig), by its serial: the
+/// session's list, not a field of every pane (a digest and a rollback copy
+/// walk every pane's fields at every step).
+changes: std.ArrayList(@import("jj.zig").Changes) = .empty,
fs: filesystem.Namespace = .{},
boot: Boot = .shell,
@@ -864,6 +868,8 @@ pub fn deinit(p: *Pardes) void {
for (p.spawn_dirs) |d| if (d) |dir| gpa.free(dir);
p.pipe.deinit(gpa);
p.stream.deinit(gpa);
+ for (p.changes.items) |*c| c.deinit(gpa);
+ p.changes.deinit(gpa);
p.handover.deinit(gpa);
if (p.stream.ahead.len > 0) p.tree_sitter_gpa.free(p.stream.ahead);
p.locations_cache.deinit(p.tree_sitter_gpa);
@@ -876,6 +882,7 @@ pub fn deinit(p: *Pardes) void {
for (&p.surface.body_layers) |*layer| gpa.free(layer.cells);
for (&p.surface.tag_layers) |*layer| gpa.free(layer.cells);
p.surface.placements.deinit(gpa);
+ p.surface.lanes.deinit(gpa);
gpa.destroy(p);
}