╭ changed ──────╮ │src/ui/Repo.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │89 const files_find: []const u8 = switch (route) { │ │90 .repo_files => |*f| f.find.slice(), │ │91 else => "", │ │92 - }; │ │93 - // what the commits view's pane shows for the commit it walks from: a diff │ │94 - // window (with the file it's filtered to) or that commit's message. │ │95 - const commits_content: ui.RoutablePage.RepoCommitsRoute.Content = switch (route) {│ │96 - .repo_commits => |c| c.content, │ │97 - else => .{ .diff = .{} }, │ │92 }; │ │93 + // the commits view's pane shows the whole message of the commit it walks from │ │94 + const commits_message = route == .repo_commits and route.repo_commits.message; │ │95 const commits_base_oid: []const u8 = switch (route) { │ │96 .repo_commits => |*c| c.base_oid.slice(), │ │97 else => "", │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │312 else if (patchrev_id.len != 0) diff: { │ │313 const diff_route = ui.RoutablePage.repoPatchRevDiffRoute(repo_identity.identity, patchrev_id, 0, "") orelse return error.RouteTooLong; │ │314 break :diff .{ .diff = try Diff.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, diff_route.repo_diff) }; │ │319 - } else .{ .commits = try Commits.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, session.haxy_moment, handle, ref_or_oid, ref_value, commits_content, base_oid, commits_search, commits_from) };│ │315 + } else .{ .commits = try Commits.init(repo_kind, opened.self_repo_opts, arena, opened, io, gpa, session.haxy_moment, handle, ref_or_oid, ref_value, commits_message, base_oid, commits_search, commits_from) };│ │316 const target_branch = if (files_data.ref_or_oid == .branch) files_data.ref_or_oid_value else ""; │ │317 break :blk .{ │ │318 files_data, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │331 const aa = arena.allocator(); │ │332 break :blk .{ │ │333 try Files.emptyResult(aa, handle, requested_ref_or_oid orelse .branch, requested_ref_value, files_dir), │ │338 - Changes{ .commits = try Commits.emptyResult(aa, handle, requested_ref_or_oid orelse .branch, requested_ref_value, commits_content, commits_base_oid) }, │ │334 + Changes{ .commits = try Commits.emptyResult(aa, handle, requested_ref_or_oid orelse .branch, requested_ref_value, commits_base_oid) }, │ │335 try Refs.emptyResult(arena, repo_identity.identity, refs_kind, refs_from, refs_search), │ │336 try Issues.emptyResult(aa, repo_identity.identity, issues_label, issues_search, issues_selected, issues_comment, issues_comments_start, issues_theirs, issues_view), │ │337 try Patches.emptyResult(aa, repo_identity.identity, patches_label, patches_search, patches_selected, patches_comment, patches_comments_start, patches_theirs, patches_view),│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯