diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-09 03:31:45 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-09 03:31:45 -0300 |
| commit | 7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c (patch) | |
| tree | 354ff35a205535ee35f9fa272639206e16ab0cec /src/rollback.zig | |
| parent | 5de9d27458cd8ff7e326532e8923c933e141ea7f (diff) | |
| download | pardes-7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c.tar.gz pardes-7e6fc8c9f62bc3dc08e24856cc647fa0adefb32c.zip | |
idioms: std.Io's names for the std.fs aliases left in Addon, Kind, rollback and replica (std.Io.Dir.path, std.Io.Dir.max_path_bytes), and the window's handover dump written and removed through the shell's io (Io.Dir.writeFile at 0600, deleteFile) instead of libc open, write and unlink
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/rollback.zig')
| -rw-r--r-- | src/rollback.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rollback.zig b/src/rollback.zig index ccd056fd..461ba45b 100644 --- a/src/rollback.zig +++ b/src/rollback.zig @@ -765,7 +765,7 @@ test "a file's location rows are pinned whole, with what they own, and come back /// `Look <name>`, the name a file of the repository's, absolute. fn lookAt(buf: []u8, name: []const u8) ![]const u8 { - var cwd: [std.fs.max_path_bytes]u8 = undefined; + var cwd: [std.Io.Dir.max_path_bytes]u8 = undefined; const dir = std.c.getcwd(&cwd, cwd.len) orelse return error.NoCwd; return std.fmt.bufPrint(buf, "Look {s}/{s}", .{ std.mem.span(@as([*:0]u8, @ptrCast(dir))), name }); } @@ -776,7 +776,7 @@ test "a rollback leaves the store and Recent as a speculation left them: they li const gpa = e.allocator(); const p = try Pardes.init(gpa, .{ .cols = 80, .rows = 24, .file = "mise.toml", .image_allocator = gpa, .tree_sitter_allocator = gpa, .frame_allocator = gpa }); p.pump(.{}) catch {}; - var line: [std.fs.max_path_bytes + 16]u8 = undefined; + var line: [std.Io.Dir.max_path_bytes + 16]u8 = undefined; p.update(.{ .command = try lookAt(&line, "build.zig.zon") }); p.update(.{ .command = "Del" }); p.pump(.{}) catch {}; |
