diff options
| author | 2026-03-25 18:15:48 +0000 | |
|---|---|---|
| committer | 2026-03-25 18:15:48 +0000 | |
| commit | 39d2d45d84a3bbae8a2be101c54271d1f0feccd4 (patch) | |
| tree | d2e6b109b6632090248953d3b38ccd2c8e7f00e9 /object/tree | |
| parent | *: Use errors.AsType (diff) | |
| signature | No signature | |
tree: Document that tree entries should be sorted
Diffstat (limited to 'object/tree')
| -rw-r--r-- | object/tree/tree.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/object/tree/tree.go b/object/tree/tree.go index 3ea6f1ee..31cabd93 100644 --- a/object/tree/tree.go +++ b/object/tree/tree.go @@ -3,5 +3,8 @@ package tree // Tree represents a Git tree object. 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. Entries []TreeEntry } |
