]> gitweb.ps.run Git - ziggit/commitdiff
Update Tree struct
authorpatrick-scho <patrick.schoenberger@posteo.de>
Mon, 12 Aug 2024 12:32:22 +0000 (14:32 +0200)
committerpatrick-scho <patrick.schoenberger@posteo.de>
Mon, 12 Aug 2024 12:32:22 +0000 (14:32 +0200)
git.zig

diff --git a/git.zig b/git.zig
index d228b50eff37afce72b3ed185e73a4dd3676da32..8c44fb6bd891daf0c2bc30c5e2444e85f2732365 100644 (file)
--- a/git.zig
+++ b/git.zig
@@ -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,
 };