shithub: furgit

ref: fb9eb058f1c9b7cb26f33bbe679a85f530566641
dir: /object/tree/tree.go/

View raw version
// Package tree provides representations, parsers, and serializers for tree objects.
package tree

// Tree represents a fully materialized Git tree object.
//
// Labels: MT-Unsafe.
type Tree struct {
	// Entries must be sorted by TreeEntryNameCompare.
	// Use the Tree methods to preserve ordering and copy semantics rather than
	// modifying the slice directly.
	Entries []TreeEntry
}