╭ changed ──────╮ │src/ui/Fork.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │55 const fork_moment = try evt.currentMoment(.{}, &fork_repo); │ │56 const retained_patch = (try evt.Patch.readById(evt.EventDB(.sha1), .sha1, fork_moment, arena, &id)) orelse return error.NotFound;│ │57 const fork_oid = (try fork_repo.readRef(io, fork.ref)) orelse return error.NotFound; │ │58 + var commits_base_oid = fork_oid; │ │59 + if (try evt.PatchRev.readNewest(evt.EventDB(.sha1), .sha1, fork_moment, arena)) |revision| { │ │60 + if (revision.record.event.base_oid.len != commits_base_oid.len) return error.NotFound; │ │61 + @memcpy(&commits_base_oid, revision.record.event.base_oid); │ │62 + } │ │63 │ │64 const target_id_hex = std.fmt.bytesToHex(target_id, .lower); │ │65 const target_path = try std.fs.path.join(aa, &.{ repos_dir, &target_id_hex }); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │137 .target_branch = target_branch, │ │138 } }; │ │139 const files = try Files.init(.xit, .{}, arena, &fork_repo, io, arena.child_allocator, location, requested_ref, requested_value, files_path, files_line); │ │135 - const commits = try Commits.init(.xit, .{}, arena, &fork_repo, io, arena.child_allocator, haxy_moment, location, requested_ref, requested_value, commits_content); │ │140 + const commits = try Commits.init(.xit, .{}, arena, &fork_repo, io, arena.child_allocator, haxy_moment, location, requested_ref, requested_value, commits_content, commits_base_oid);│ │141 │ │142 return .{ │ │143 .header = try Header.init(arena, target_record.event.name, owner.event.name, &id_hex, requested_value), │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯