feat: minor tweaks to version info
This commit is contained in:
parent
1d509282f7
commit
30ad3aea60
2 changed files with 3 additions and 3 deletions
|
@ -744,8 +744,8 @@ fn gen_version_info(
|
|||
else
|
||||
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("build mode: {s}\n", .{@tagName(optimize)});
|
||||
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)});
|
||||
|
||||
if (log.len > 0)
|
||||
try writer.print("\nwith the following diverging commits:\n{s}\n", .{log});
|
||||
|
|
|
@ -476,7 +476,7 @@ const cmds = struct {
|
|||
pub fn open_version_info(self: *Self, _: Ctx) Result {
|
||||
tui.reset_drag_context();
|
||||
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();
|
||||
}
|
||||
pub const open_version_info_meta: Meta = .{ .description = "Version" };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue