╭ changed ────────────╮ │src/ui/Repo/Files.zig│ ╰─────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │153 │ │154 // a ref that didn't resolve: a 404 when the route named it explicitly, else an │ │155 // empty listing (e.g. resolving an empty repo's default branch). │ │156 -fn unresolved(aa: std.mem.Allocator, identity: []const u8, explicit: bool, ref_kind: RefKindOrOid, ref_value: []const u8, dir: []const u8) !Self { │ │156 +fn unresolved(aa: std.mem.Allocator, identity: []const u8, explicit: bool, ref_or_oid: RefOrOid, ref_or_oid_value: []const u8, dir: []const u8) !Self {│ │157 if (explicit) return error.NotFound; │ │158 - return emptyResult(aa, identity, ref_kind, ref_value, dir); │ │158 + return emptyResult(aa, identity, ref_or_oid, ref_or_oid_value, dir); │ │159 } │ │160 │ │161 // an empty listing pinned to a ref, for the wasm / no-repo / unresolved paths. │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │162 -fn emptyResult(aa: std.mem.Allocator, identity: []const u8, ref_kind: RefKindOrOid, ref_value: []const u8, dir: []const u8) !Self { │ │162 +fn emptyResult(aa: std.mem.Allocator, identity: []const u8, ref_or_oid: RefOrOid, ref_or_oid_value: []const u8, dir: []const u8) !Self {│ │163 return .{ │ │164 .identity = try aa.dupe(u8, identity), │ │165 - .ref_kind = ref_kind, │ │166 - .ref_value = try aa.dupe(u8, ref_value), │ │165 + .ref_or_oid = ref_or_oid, │ │166 + .ref_or_oid_value = try aa.dupe(u8, ref_or_oid_value), │ │167 .dir = try aa.dupe(u8, dir), │ │168 .entries = &.{}, │ │169 }; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │280 │ │281 // the "a:" link for the files route at `dir`, pinned to the listing's ref. │ │282 fn dirLink(page_arena: *std.heap.ArenaAllocator, data: *const Self, dir: []const u8) ![]const u8 { │ │283 - const route = ui.RoutablePage.repoFilesRoute(data.identity, data.ref_kind, data.ref_value, dir) orelse return error.RouteTooLong; │ │283 + const route = ui.RoutablePage.repoFilesRoute(data.identity, data.ref_or_oid, data.ref_or_oid_value, dir) orelse return error.RouteTooLong;│ │284 const url = try route.urlAlloc(page_arena); │ │285 return std.fmt.allocPrint(page_arena.allocator(), "a:{s}", .{url}); │ │286 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯