Versions in this module Expand all Collapse all v1 v1.0.0 Jun 22, 2023 Changes in this version + var ErrCanceled = errors.New("operation canceled") + type Action int + const Delete + const Insert + const Modify + func (a Action) String() string + type Change struct + From noder.Path + To noder.Path + func NewDelete(n noder.Path) Change + func NewInsert(n noder.Path) Change + func NewModify(a, b noder.Path) Change + func (c *Change) Action() (Action, error) + func (c Change) String() string + type Changes []Change + func DiffTree(fromTree, toTree noder.Noder, hashEqual noder.Equal) (Changes, error) + func DiffTreeContext(ctx context.Context, fromTree, toTree noder.Noder, hashEqual noder.Equal) (Changes, error) + func NewChanges() Changes + func (l *Changes) Add(c Change) + func (l *Changes) AddRecursiveDelete(root noder.Path) error + func (l *Changes) AddRecursiveInsert(root noder.Path) error + type Iter struct + func NewIter(n noder.Noder) (*Iter, error) + func NewIterFromPath(p noder.Path) (*Iter, error) + func (iter *Iter) Next() (noder.Path, error) + func (iter *Iter) Step() (noder.Path, error)