refactor: store received vcs_id and vcs_content in buffer

This commit is contained in:
CJ van den Berg 2025-12-17 21:01:53 +01:00
parent c021136fef
commit 2a3210a183
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 71 additions and 3 deletions

View file

@ -2570,7 +2570,6 @@ pub fn request_vcs_content(self: *Self, file_path: []const u8, vcs_id: []const u
.file_path = try self.allocator.dupe(u8, file_path),
.vcs_id = try self.allocator.dupe(u8, vcs_id),
};
self.logger_git.print("cat-file request {}:{s}:{s}", .{ request, vcs_id, file_path });
git.cat_file(@intFromPtr(request), vcs_id) catch |e|
self.logger_git.print_err("cat-file", "failed: {t}", .{e});
}