diff options
Diffstat (limited to 'plumbing/object/tree.go')
-rw-r--r-- | plumbing/object/tree.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plumbing/object/tree.go b/plumbing/object/tree.go index 436ac32..ef5e140 100644 --- a/plumbing/object/tree.go +++ b/plumbing/object/tree.go @@ -299,6 +299,11 @@ func (t *Tree) buildMap() { } } +// Diff returns a list of changes between this tree and the provided one +func (from *Tree) Diff(to *Tree) (Changes, error) { + return DiffTree(from, to) +} + // treeEntryIter facilitates iterating through the TreeEntry objects in a Tree. type treeEntryIter struct { t *Tree |