fix: do not log git cat-file errors

This commit is contained in:
CJ van den Berg 2025-12-26 12:49:03 +01:00
parent 90aba421a2
commit 89dc5cce54
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -275,11 +275,11 @@ pub fn rev_parse(context_: usize, rev: []const u8, file_path: []const u8) Error!
pub fn cat_file(context_: usize, object: []const u8) Error!void {
const tag = @src().fn_name;
try git_err(context_, .{ "cat-file", "-p", object }, struct {
try git(context_, .{ "cat-file", "-p", object }, struct {
fn result(context: usize, parent: tp.pid_ref, output: []const u8) void {
parent.send(.{ module_name, context, tag, output }) catch {};
}
}.result, log_err, exit_null(tag));
}.result, exit_null(tag));
}
fn git_line_output(context_: usize, comptime tag: []const u8, cmd: anytype) Error!void {