| ... | @@ -993,6 +993,10 @@ pub const Repository = struct { | ... | @@ -993,6 +993,10 @@ pub const Repository = struct { |
| 993 | return (try r.getObjectA(arena, oid)).content; | 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 | const GitObject = struct { | 1000 | const GitObject = struct { |
| 997 | type: RefType, | 1001 | type: RefType, |
| 998 | content: []const u8, | 1002 | content: []const u8, |