╭ changed ──────────────╮ │src/ui/Repo/Commits.zig│ ╰───────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │793 // `identity`, showing the selected commit's first `start` hunks (0 = default). │ │794 fn commitsLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, oid: []const u8, start: usize) ![]const u8 {│ │795 const route = ui.RoutablePage.repoCommitsRoute(identity, .object, oid, start) orelse return error.RouteTooLong; │ │796 - const url = try route.urlAlloc(page_arena); │ │796 + const url = try route.toUrl(page_arena); │ │797 return std.fmt.allocPrint(page_arena.allocator(), "a:{s}", .{url}); │ │798 } │ │799 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │801 // directory, within `identity` ("owner/name"). │ │802 fn filesObjectLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, oid: []const u8) ![]const u8 { │ │803 const route = ui.RoutablePage.repoFilesRoute(identity, .object, oid, "", 0) orelse return error.RouteTooLong;│ │804 - const url = try route.urlAlloc(page_arena); │ │804 + const url = try route.toUrl(page_arena); │ │805 return std.fmt.allocPrint(page_arena.allocator(), "a:{s}", .{url}); │ │806 } │ │807 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │810 // in-page (crossPageLink ignores it); the href is only followed with js off. │ │811 fn commitRowLink(page_arena: *std.heap.ArenaAllocator, identity: []const u8, oid: []const u8) ![]const u8 { │ │812 const route = ui.RoutablePage.repoCommitsRoute(identity, .object, oid, 0) orelse return error.RouteTooLong;│ │813 - const url = try route.urlAlloc(page_arena); │ │813 + const url = try route.toUrl(page_arena); │ │814 return std.fmt.allocPrint(page_arena.allocator(), "ai:{s}", .{url}); │ │815 } │ │816 │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯