diff options
| author | 2025-11-16 00:00:00 +0000 | |
|---|---|---|
| committer | 2025-11-16 00:00:00 +0000 | |
| commit | 503f2f1bbc69be553d04c621c7ec33931cc1f57d (patch) | |
| tree | 289b2ea2dc589d6ce7efc3e44966eabb6739d3f2 /obj_tree.go | |
| parent | README: benmarking -> test (diff) | |
| signature | ||
Add a little bit more of documentation
Diffstat (limited to 'obj_tree.go')
| -rw-r--r-- | obj_tree.go | 7 |
1 files changed, 6 insertions, 1 deletions
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. |
