From: patrick-scho Date: Wed, 21 Aug 2024 15:12:30 +0000 (+0200) Subject: change debug output to include hash and data length X-Git-Url: https://gitweb.ps.run/ziggit/commitdiff_plain/5fee30bf784534a6f8d62a8f9be70f3bd6471f66 change debug output to include hash and data length --- diff --git a/git.zig b/git.zig index 4dbe474..c45963e 100644 --- a/git.zig +++ b/git.zig @@ -520,7 +520,7 @@ test "list blobs" { defer std.testing.allocator.free(bo.data); if (treeEntry.permissions.len == 6) { - std.debug.print("{s}: {s}\n", .{ treeEntry.name, bo.data[0..50] }); + std.debug.print("{s}: [{x} {}]{s}\n", .{ treeEntry.name, treeEntry.id, bo.data.len, bo.data[0..50] }); } else { std.debug.print("[{s}]\n", .{treeEntry.name}); }