╭ changed ──────────────╮ │src/ui/Repo/Patches.zig│ ╰───────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │260 return ui.RoutablePage.repoPatchesRoute(identity, status, tag, selected); │ │261 } │ │262 │ │263 -pub fn commitsRoute(allocator: std.mem.Allocator, identity: []const u8, entry: PatchWithId) !?ui.RoutablePage {│ │263 +pub fn commitsRoute(identity: []const u8, entry: PatchWithId) !?ui.RoutablePage { │ │264 if (entry.fork_exists and entry.record.event.status.kind() != .merged) │ │265 return ui.RoutablePage.forkCommitsRoute(identity, entry.id, "", 0, "") orelse error.RouteTooLong; │ │266 if (entry.revision_oid.len == 0 or entry.base_oid.len == 0) return null; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │267 - // open patches follow the source branch; closed and merged patches keep their recorded revision │ │268 - if (entry.record.event.status.kind() == .open) if (entry.record.event.source_branch) |branch| { │ │269 - const encoded = try ui.urlEncodeRef(allocator, branch); │ │270 - defer allocator.free(encoded); │ │271 - return ui.RoutablePage.repoCommitsRoute(identity, .branch, encoded, 0, "", entry.base_oid) orelse error.RouteTooLong; │ │272 - }; │ │267 return ui.RoutablePage.repoCommitsRoute(identity, .object, entry.revision_oid, 0, "", entry.base_oid) orelse error.RouteTooLong;│ │268 } │ │269 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/ui/widget/thread.zig│ ╰────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │536 if (try Data.diffRoute(self.data.identity, entry)) |route| { │ │537 try addToolButton(allocator, row, "view diff", "", try std.fmt.allocPrint(pa, "a:{s}", .{try route.toUrl(self.session.page_arena)}));│ │538 } │ │539 - if (try Data.commitsRoute(pa, self.data.identity, entry)) |route| { │ │539 + if (try Data.commitsRoute(self.data.identity, entry)) |route| { │ │540 const label = if (entry.commit_count) |count| try std.fmt.allocPrint(pa, "view commits ({d})", .{count}) else "view commits"; │ │541 try addToolButton(allocator, row, label, "", try std.fmt.allocPrint(pa, "a:{s}", .{try route.toUrl(self.session.page_arena)})); │ │542 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯