╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────────╮ │src/ui/Repo/Issues.zig│ ╰──────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │85 │ │86 // read one window per status of an opened repo's issues (filtered to `tag` │ │87 // when set), ordered by creation time (newest first). the window of the issue│ │88 -// `selected_id` names starts at it ("" = the beginning). a local session │ │89 -// reads the event db next to the repo (synced from the events branch on each │ │90 -// page build); a server repo reads its own db. │ │88 +// `selected_id` names starts at it ("" = the beginning). a git repo reads the│ │89 +// event db next to it (synced from the events branch on each page build); a │ │90 +// xit repo reads its own db. │ │91 pub fn init( │ │92 comptime repo_kind: rp.RepoKind, │ │93 comptime repo_opts: rp.RepoOpts(repo_kind), │ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────╮ │94 arena: *std.heap.ArenaAllocator, │ │95 repo: *rp.Repo(repo_kind, repo_opts),│ │96 io: std.Io, │ │97 - is_local: bool, │ │97 identity: []const u8, │ │98 tag: []const u8, │ │99 selected_id: []const u8, │ ╰─────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │111 │ │112 // a repo with no consumed events has no moment yet. │ │113 const gpa = arena.child_allocator; │ │115 - var event_db_maybe = if (is_local) try evt.LocalEventDB(repo_opts.hash).open(io, gpa, repo.core.repo_dir) else null; │ │114 + var event_db_maybe: ?evt.LocalEventDB(repo_opts.hash) = if (repo_kind == .git) try evt.LocalEventDB(repo_opts.hash).openReadOnly(io, gpa, repo.core.repo_dir) else null;│ │115 defer if (event_db_maybe) |*event_db| event_db.deinit(io, gpa); │ │116 const haxy_moment = (if (event_db_maybe) |*event_db| │ │117 evt.currentMomentFromDb(repo_opts.hash, event_db.db) │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────╮ │118 else if (repo_kind == .git) │ │120 - return empty │ │121 - else if (is_local) │ │119 return empty │ │120 else │ │121 evt.currentMoment(repo_opts, repo)) catch {│ ╰────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │960 var any_repo = try rp.AnyRepo(repo_kind, .{}).open(io, allocator, .{ .path = src.path }); │ │961 defer any_repo.deinit(io, allocator); │ │962 switch (any_repo) { │ │966 - inline else => |*repo| try evt.commitAndConsume(repo_kind, repo.self_repo_opts, io, allocator, repo, evt.events_ref, &.{event}, self.session.local != null),│ │963 + inline else => |*repo| try evt.commitAndConsume(repo_kind, repo.self_repo_opts, io, allocator, repo, evt.events_ref, &.{event}), │ │964 } │ │965 }, │ │966 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──╮ │src/web.zig│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │413 .description = description, │ │414 .tags = tags, │ │415 } }, │ │416 - }}, false); │ │416 + }}); │ │417 │ │418 const location = try std.fmt.allocPrint(allocator, "{s}/issues/{s}", .{ base, &event_id_hex });│ │419 defer allocator.free(location); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯