authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-15 21:12:51 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-15 21:12:51 -07:00
logd398facfc305601c6628d986fe9306a046066b7a
tree4b5087756dc31ec9b0ba8216f9482c65dab12e27
parenta76cb9d698e9f03b1e00b0b35b9c480901fe95e7
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

getDeltadObject: always cache into unpacked_objects


1 files changed, 2 insertions(+), 4 deletions(-)

git.zig+2-4
......@@ -998,10 +998,8 @@ pub const Repository = struct {
998998 const _type = base_obj.type;
999999 const content = try list2.toOwnedSlice(r.gpa);
10001000 const obj: GitObject = .{ .type = _type, .content = content };
1001 if (maybe_oid) |oid|
1002 try r.unpacked_loose_objects.put(r.gpa, oid, obj)
1003 else
1004 try r.unpacked_objects.put(r.gpa, key, obj);
1001 _ = maybe_oid;
1002 try r.unpacked_objects.put(r.gpa, key, obj);
10051003 return obj;
10061004 }
10071005