From 060e5b7063ec282627dde96ac028f0d40cf05c60 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 28 Mar 2026 16:33:14 +0000 Subject: object/tree: Update docs --- object/tree/tree.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'object/tree/tree.go') diff --git a/object/tree/tree.go b/object/tree/tree.go index 31cabd93..d0c7f4f0 100644 --- a/object/tree/tree.go +++ b/object/tree/tree.go @@ -1,10 +1,12 @@ // Package tree provides representations, parsers, and serializers for tree objects. package tree -// Tree represents a Git tree object. +// Tree represents a fully materialized Git tree object. +// +// Labels: MT-Unsafe. type Tree struct { // Entries must be sorted by TreeEntryNameCompare. - // You are strongly advised to use the methods for manipulation - // rather than modifying the slice yourself. + // Use the Tree methods to preserve ordering and copy semantics rather than + // modifying the slice directly. Entries []TreeEntry } -- cgit v1.3.1-10-gc9f91