shithub: furgit

ref: df1f2fb3daa1acd25c88510f259d5535fb482126
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
}