feat: minor tweaks to version info

This commit is contained in:
CJ van den Berg 2025-09-30 15:50:17 +02:00
parent 1d509282f7
commit 30ad3aea60
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 3 additions and 3 deletions

View file

@ -744,8 +744,8 @@ fn gen_version_info(
else else
try writer.print("branch: {s} at {s}\n", .{ branch, remote }); try writer.print("branch: {s} at {s}\n", .{ branch, remote });
try writer.print("built with: zig {s} ({s})\n", .{ builtin.zig_version_string, @tagName(builtin.zig_backend) }); try writer.print("built-with: zig {s} ({s})\n", .{ builtin.zig_version_string, @tagName(builtin.zig_backend) });
try writer.print("build mode: {s}\n", .{@tagName(optimize)}); try writer.print("build-mode: {s}\n", .{@tagName(optimize)});
if (log.len > 0) if (log.len > 0)
try writer.print("\nwith the following diverging commits:\n{s}\n", .{log}); try writer.print("\nwith the following diverging commits:\n{s}\n", .{log});

View file

@ -476,7 +476,7 @@ const cmds = struct {
pub fn open_version_info(self: *Self, _: Ctx) Result { pub fn open_version_info(self: *Self, _: Ctx) Result {
tui.reset_drag_context(); tui.reset_drag_context();
try self.create_editor(); try self.create_editor();
try command.executeName("open_scratch_buffer", command.fmt(.{ "version", root.version_info, "diff" })); try command.executeName("open_scratch_buffer", command.fmt(.{ "version", root.version_info, "gitcommit" }));
tui.need_render(); tui.need_render();
} }
pub const open_version_info_meta: Meta = .{ .description = "Version" }; pub const open_version_info_meta: Meta = .{ .description = "Version" };