Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cmd/log.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub fn run(repo: *c.git_repository, human: bool, count: usize, w: *Writer) !void
const raw_summary = c.git_commit_summary(commit);
const summary: []const u8 = if (raw_summary != null) std.mem.span(raw_summary) else "(empty)";

var oid_buf: [c.GIT_OID_SHA1_HEXSIZE + 1]u8 = undefined;
var oid_buf: [c.GIT_OID_HEXSZ + 1]u8 = undefined;
_ = c.git_oid_tostr(&oid_buf, oid_buf.len, &oid);
const short_hash = oid_buf[0..7];

Expand Down
2 changes: 1 addition & 1 deletion src/cmd/show.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn run(repo: *c.git_repository, human: bool, stat: bool, rev: ?[]const u8, w
try git.check(c.git_commit_lookup(&commit, repo, &oid));
defer c.git_commit_free(commit);

var oid_buf: [c.GIT_OID_SHA1_HEXSIZE + 1]u8 = undefined;
var oid_buf: [c.GIT_OID_HEXSZ + 1]u8 = undefined;
_ = c.git_oid_tostr(&oid_buf, oid_buf.len, &oid);
const short_hash = oid_buf[0..7];
const raw_summary = c.git_commit_summary(commit);
Expand Down
Loading