╭ changed ──────────────╮ │src/ui/Repo/Patches.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │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 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯