╭ changed ──╮ │src/try.zig│ ╰───────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │300 "refactor badger walrus module", │ │301 "drop dead ferret marmot branch", │ │302 }; │ │303 + const commit_count = 30; │ │304 var c: usize = 0; │ │304 - while (c < 30) : (c += 1) { │ │305 + while (c < commit_count) : (c += 1) { │ │306 { │ │307 var repo_dir = try cwd.openDir(io, template_path, .{});│ │308 defer repo_dir.close(io); │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │325 if (len >= msg_target or len + 1 + word.len > 120) break; │ │326 try msg_writer.writer.print(" {s}", .{word}); │ │327 } │ │328 + // the newest commit's message runs past what the detail pane │ │329 + // reads, so it shows the truncated message and its link. │ │330 + if (c == commit_count - 1) { │ │331 + var line: usize = 0; │ │332 + while (msg_writer.written().len <= ui.Repo.Commits.max_message_size) : (line += 1) { │ │333 + try msg_writer.writer.print("\n{d} {s}", .{ line, scatter_words[line % scatter_words.len] }); │ │334 + } │ │335 + } │ │336 const message = try arena.allocator().dupe(u8, msg_writer.written()); │ │337 _ = try template_repo.commit(io, allocator, .{ .message = message, .timestamp = base_ts + c * std.time.s_per_day });│ │338 try addNextTag(&template_repo, io, allocator, &tag_num); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯