authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-04-12 14:01:53 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-04-12 14:02:26 -07:00
log27e0c4ec7689f804bb7bac3c467468a2cc996bb2
tree2c9d50d782d10516e75c894263e3fb0dcb6b8bf7
parente7865d3412c7f31fbdf3f4b4513238bbff6055e7
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

hide the debug logs


1 files changed, 11 insertions(+), 11 deletions(-)

git.zig+11-11
......@@ -992,7 +992,7 @@ pub const Repository = struct {
992992 while (try iter.next()) |entry| {
993993 if (entry.type != .REG) continue;
994994 if (!std.mem.endsWith(u8, entry.name, ".idx")) continue;
995 std.log.debug("packdir iterate: {s}", .{entry.name});
995 // std.log.debug("packdir iterate: {s}", .{entry.name});
996996
997997 const idx_file = try packdir.openFile(entry.name, .{});
998998 defer idx_file.close();
......@@ -1017,7 +1017,7 @@ pub const Repository = struct {
10171017 const object_id = &extras.to_hex(name_bytes[i * 20 ..][0..20].*);
10181018 const pack_offset = std.mem.readInt(u32, offset_bytes[i * 4 ..][0..4], .big);
10191019 if (std.mem.eql(u8, object_id, oid)) {
1020 std.log.debug("found {s} in {s} at offset {d}", .{ oid, idx_path, pack_offset });
1020 // std.log.debug("found {s} in {s} at offset {d}", .{ oid, idx_path, pack_offset });
10211021 const pack_index = r.pack_content.getIndex(idx_path) orelse clk: {
10221022 var pack_path: [128]u8 = @splat(0);
10231023 @memcpy(pack_path[0..13], "objects/pack/");
......@@ -1040,7 +1040,7 @@ pub const Repository = struct {
10401040 } else return null;
10411041
10421042 // parse .pack
1043 std.log.debug("pack_index={d} pack_offset={d}", .{ pack_index, pack_offset });
1043 // std.log.debug("pack_index={d} pack_offset={d}", .{ pack_index, pack_offset });
10441044
10451045 return try r.getPackedObject(oid, pack_index, pack_offset);
10461046 }
......@@ -1087,7 +1087,7 @@ pub const Repository = struct {
10871087 return obj;
10881088 },
10891089 .ofs_delta => {
1090 std.log.debug("type={s} size={d}", .{ @tagName(ty), size });
1090 // std.log.debug("type={s} size={d}", .{ @tagName(ty), size });
10911091 var offset: usize = 0;
10921092 while (true) {
10931093 const c2: usize = packedobj_fbs.takeByte();
......@@ -1097,7 +1097,7 @@ pub const Repository = struct {
10971097 }
10981098 const base_pack_offset = pack_offset - offset;
10991099 const base_obj = try r.getPackedObject(null, pack_index, base_pack_offset);
1100 std.log.debug("base: type={s} content=[{d}]", .{ @tagName(base_obj.type), base_obj.content.len });
1100 // std.log.debug("base: type={s} content=[{d}]", .{ @tagName(base_obj.type), base_obj.content.len });
11011101
11021102 const compressed_content = packedobj_fbs.rest()[0..size];
11031103 var bufr = nio.FixedBufferStream([]const u8).init(compressed_content);
......@@ -1107,7 +1107,7 @@ pub const Repository = struct {
11071107 try list.ensureUnusedCapacity(r.gpa, size);
11081108 try std.compress.flate.inflate.decompress(.zlib, bufr.anyReadable(), list.writer(r.gpa));
11091109
1110 std.log.debug("transformation data={d}", .{list.items});
1110 // std.log.debug("transformation data={d}", .{list.items});
11111111
11121112 var unpackedobj_fbs = nio.FixedBufferStream([]const u8).init(list.items);
11131113
......@@ -1121,7 +1121,7 @@ pub const Repository = struct {
11211121 if (c2 & 0x80 == 0) break;
11221122 base_size += 1;
11231123 }
1124 std.log.debug("base_size={d}", .{base_size});
1124 // std.log.debug("base_size={d}", .{base_size});
11251125
11261126 var obj_size: usize = 0;
11271127 while (true) {
......@@ -1130,7 +1130,7 @@ pub const Repository = struct {
11301130 if (c2 & 0x80 == 0) break;
11311131 obj_size += 1;
11321132 }
1133 std.log.debug("obj_size={d}", .{obj_size});
1133 // std.log.debug("obj_size={d}", .{obj_size});
11341134
11351135 while (unpackedobj_fbs.pos < unpackedobj_fbs.buffer.len) {
11361136 const c2 = unpackedobj_fbs.takeByte();
......@@ -1143,14 +1143,14 @@ pub const Repository = struct {
11431143 }
11441144 const start: u32 = @bitCast(b.items[0..4].*);
11451145 const nbytes: u24 = @bitCast(b.items[4..7].*);
1146 std.log.debug("- copy from base: start={d} nbytes={d}", .{ start, nbytes });
1146 // std.log.debug("- copy from base: start={d} nbytes={d}", .{ start, nbytes });
11471147 const bytes = base_obj.content[start..][0..nbytes];
11481148 // std.log.debug("{s}\n", .{bytes});
11491149 try list2.appendSlice(r.gpa, bytes);
11501150 } else {
11511151 // append new data
11521152 const nbytes = c2 & 0x7f;
1153 std.log.debug("- append new bytes={d}", .{nbytes});
1153 // std.log.debug("- append new bytes={d}", .{nbytes});
11541154 if (nbytes == 0) continue;
11551155 const bytes = unpackedobj_fbs.takeSlice(nbytes);
11561156 // std.log.debug("{s}\n", .{bytes});
......@@ -1158,7 +1158,7 @@ pub const Repository = struct {
11581158 }
11591159 }
11601160
1161 std.log.debug("- done", .{});
1161 // std.log.debug("- done", .{});
11621162 // std.log.debug("{s}\n", .{list2.items});
11631163 const _type = base_obj.type;
11641164 const content = try list2.toOwnedSlice(r.gpa);