| author | |
| committer | |
| log | d8c28f72f5d5bc1f9bf10e0ffa78fdc0595bda2c |
| tree | 1c2229cb81c44c157de9f0afd2b8e5c84dccc544 |
| parent | 3d408725231b4c6b45ccc9ba5a050d4a5ab1a3b7 |
| signature |
a bring back of getObjectSize
nesting things that need to be try'd is an anti-pattern so more semantic methods is okay1 files changed, 4 insertions(+), 0 deletions(-)
git.zig+4| ... | ... | @@ -993,6 +993,10 @@ pub const Repository = struct { |
| 993 | 993 | return (try r.getObjectA(arena, oid)).content; |
| 994 | 994 | } |
| 995 | 995 | |
| 996 | pub fn getObjectS(r: *Repository, arena: std.mem.Allocator, oid: Id) !usize { | |
| 997 | return (try r.getObjectC(arena, oid)).len; | |
| 998 | } | |
| 999 | ||
| 996 | 1000 | const GitObject = struct { |
| 997 | 1001 | type: RefType, |
| 998 | 1002 | content: []const u8, |