╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │457 if (self.selectedCommitIndex()) |sel| { │ │458 // mirror the commit's current diff window so the url stays │ │459 // linkable (0 for any commit but the windowed start one). │ │442 - if (ui.RoutablePage.repoCommitsRoute(self.data.identity, self.data.commits[sel].oid, self.data.commits[sel].window_start)) |route| │ │460 + if (ui.RoutablePage.repoCommitsRoute(self.data.identity, .object, self.data.commits[sel].oid, self.data.commits[sel].window_start)) |route|│ │461 self.session.data.current_page = route; │ │462 } │ │463 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │559 .enter => if (self.selectedCommitIndex() != null) │ │560 try self.focusDiff(root_focus) │ │561 else if (self.data.next_start) |next| { │ │544 - if (ui.RoutablePage.repoCommitsRoute(self.data.identity, next, 0)) |route| │ │562 + if (ui.RoutablePage.repoCommitsRoute(self.data.identity, .object, next, 0)) |route|│ │563 try self.session.navigate(route); │ │564 }, │ │565 .arrow_right => try self.focusDiff(root_focus), │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │781 } │ │782 }; │ │783 │ │766 -// the "a:" navigation link for the commits page starting at `start_oid` within │ │784 +// the "a:" navigation link for the commits page walking from commit `oid` within │ │785 // `identity`, showing the selected commit's first `after` hunks (0 = default). │ │768 -fn commitsLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, start_oid: []const u8, after: usize) ![]const u8 {│ │769 - const route = ui.RoutablePage.repoCommitsRoute(identity, start_oid, after) orelse return error.RouteTooLong; │ │786 +fn commitsLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, oid: []const u8, after: usize) ![]const u8 { │ │787 + const route = ui.RoutablePage.repoCommitsRoute(identity, .object, oid, after) orelse return error.RouteTooLong; │ │788 const url = try route.urlAlloc(page_arena); │ │789 return std.fmt.allocPrint(page_arena.allocator(), "a:{s}", .{url}); │ │790 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │793 // points at the same route as commitsLink but the "ai:" prefix keeps wasm clicks │ │794 // in-page (crossPageLink ignores it); the href is only followed with js off. │ │795 fn commitRowLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, oid: []const u8) ![]const u8 { │ │778 - const route = ui.RoutablePage.repoCommitsRoute(identity, oid, 0) orelse return error.RouteTooLong; │ │796 + const route = ui.RoutablePage.repoCommitsRoute(identity, .object, oid, 0) orelse return error.RouteTooLong;│ │797 const url = try route.urlAlloc(page_arena); │ │798 return std.fmt.allocPrint(page_arena.allocator(), "ai:{s}", .{url}); │ │799 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯