shithub: furgit

ref: c8dd7d3b44c93a664dddc0c4619d336c6e13d2a8
dir: /diff/trees/entry.go/

View raw version
package trees

import "codeberg.org/lindenii/furgit/object"

// Entry is one recursive tree difference at a path.
type Entry struct {
	// Path is the slash-separated path relative to the diff root.
	Path []byte
	// Kind is the difference kind for this path.
	Kind EntryKind
	// Old is the old tree entry (nil when Kind is EntryKindAdded).
	Old *object.TreeEntry
	// New is the new tree entry (nil when Kind is EntryKindDeleted).
	New *object.TreeEntry
}