╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │224 var pair = pair_val; │ │225 defer pair.deinit(); │ │226 │ │207 - var hunk_iter = df.HunkIterator(.xit, .{}).init(gpa, &pair.a, &pair.b) catch continue; │ │227 + var hunk_iter = df.HunkIterator(.xit, repo_opts).init(gpa, &pair.a, &pair.b) catch continue;│ │228 defer hunk_iter.deinit(gpa); │ │229 │ │230 // the path label rides on the first of this file's hunks we actually show. │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────╮ │241 break :file_loop; │ │242 } │ │243 var lines: std.ArrayList([]const u8) = .empty; │ │224 - try appendHunkLines(arena, &lines, &hunk_iter, &hunk); │ │244 + try appendHunkLines(repo_opts, arena, &lines, &hunk_iter, &hunk); │ │245 try hunks.append(arena, .{ │ │246 .path = if (path_attached) null else try arena.dupe(u8, pair.path),│ │247 .lines = try lines.toOwnedSlice(arena), │ ╰────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │256 // append a hunk's header and its edit lines, each prefixed with a right-aligned │ │257 // line number in a column wide enough for the hunk's largest number, then a space│ │258 fn appendHunkLines( │ │259 + comptime repo_opts: rp.RepoOpts(.xit), │ │260 arena: std.mem.Allocator, │ │261 lines: *std.ArrayList([]const u8), │ │241 - hunk_iter: *df.HunkIterator(.xit, .{}), │ │242 - hunk: *df.Hunk(.xit, .{}), │ │262 + hunk_iter: *df.HunkIterator(.xit, repo_opts), │ │263 + hunk: *df.Hunk(.xit, repo_opts), │ │264 ) !void { │ │265 var max_num: usize = 1; │ │266 for (hunk.edits.items) |edit| { │ ╰───────────────────────────────────────────────────────────────────────────────────────╯