From 503f2f1bbc69be553d04c621c7ec33931cc1f57d Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 16 Nov 2025 00:00:00 +0000 Subject: Add a little bit more of documentation --- obj_tree.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'obj_tree.go') diff --git a/obj_tree.go b/obj_tree.go index be4accb5..689b3690 100644 --- a/obj_tree.go +++ b/obj_tree.go @@ -9,6 +9,7 @@ import ( // Tree represents a Git tree object. type Tree struct { + // Entries represents the entries in the tree. Entries []TreeEntry } @@ -41,9 +42,13 @@ const ( // TreeEntry represents a single entry in a Git tree. type TreeEntry struct { + // Mode represents the file mode of the entry. Mode FileMode + // Name represents the name of the entry. Name []byte - ID Hash + // ID represents the hash of the entry. This is typically + // either a blob or a tree. + ID Hash } // ObjectType returns the object type of the tree. -- cgit v1.3.1-10-gc9f91