fix: do not log git cat-file errors
This commit is contained in:
parent
90aba421a2
commit
89dc5cce54
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
pub fn cat_file(context_: usize, object: []const u8) Error!void {
|
||||||
const tag = @src().fn_name;
|
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 {
|
fn result(context: usize, parent: tp.pid_ref, output: []const u8) void {
|
||||||
parent.send(.{ module_name, context, tag, output }) catch {};
|
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 {
|
fn git_line_output(context_: usize, comptime tag: []const u8, cmd: anytype) Error!void {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue