authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-04-21 00:44:08 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-04-21 00:44:08 -07:00
log5f9e5b23ee5e51193f89f8f02b16ed2382132165
tree9a7bd71bf7636459cd9eb694ab68af2d52063c30
parent81b05921ec553e1adf29705b84fbfb610690ec88
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

comment another log for getTreeCommits


1 files changed, 6 insertions(+), 0 deletions(-)

git.zig+6
...@@ -1332,6 +1332,8 @@ pub const Repository = struct {...@@ -1332,6 +1332,8 @@ pub const Repository = struct {
1332 const t = tracer.trace(@src(), "", .{});1332 const t = tracer.trace(@src(), "", .{});
1333 defer t.end();1333 defer t.end();
13341334
1335 // const start = std.time.milliTimestamp();
1336
1335 const base_idx = try r.getCommitA(arena, base_oid.id);1337 const base_idx = try r.getCommitA(arena, base_oid.id);
1336 const base = base_idx.reify(r);1338 const base = base_idx.reify(r);
1337 const base_tree = try traverseTo(r, arena, base.tree, dir_path);1339 const base_tree = try traverseTo(r, arena, base.tree, dir_path);
...@@ -1385,6 +1387,10 @@ pub const Repository = struct {...@@ -1385,6 +1387,10 @@ pub const Repository = struct {
1385 v.* = base_oid;1387 v.* = base_oid;
1386 }1388 }
1387 }1389 }
1390
1391 // const end = std.time.milliTimestamp();
1392 // std.log.debug("found {d} in {d}ms", .{ total, end - start });
1393
1388 return try arena.dupe(CommitId, result.values());1394 return try arena.dupe(CommitId, result.values());
1389 }1395 }
1390};1396};