diff options
| -rw-r--r-- | git.zig | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -8,11 +8,18 @@ const MaxFileSize = 1024 * 1024; const Id = u160; const Commit = struct { + tree: Id, + parent: Id, author: []u8, + committer: []u8, message: []u8, - parent: Id, - tree: Id, }; +const TreeEntry = struct { + permissions: []u8, + name: []u8, + id: Id, +}; +const Tree = std.ArrayList(TreeEntry); const Blob = struct { data: []u8, }; |
