MCPcopy Create free account
hub / github.com/go-git/go-git / Diff

Method Diff

plumbing/object/tree.go:339–341  ·  view source on GitHub ↗

Diff returns a list of changes between this tree and the provided one

(to *Tree)

Source from the content-addressed store, hash-verified

337
338// Diff returns a list of changes between this tree and the provided one
339func (t *Tree) Diff(to *Tree) (Changes, error) {
340 return t.DiffContext(context.Background(), to)
341}
342
343// DiffContext returns a list of changes between this tree and the provided one
344// Error will be returned if context expires. Provided context must be non nil.

Callers 2

TestDiffTreeMethod · 0.95
TestTreeDiffMethod · 0.80

Calls 1

DiffContextMethod · 0.95

Tested by 2

TestDiffTreeMethod · 0.76
TestTreeDiffMethod · 0.64