MCPcopy Index your code
hub / github.com/go-git/go-git / Diff

Method Diff

plumbing/object/tree.go:421–423  ·  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

419
420// Diff returns a list of changes between this tree and the provided one
421func (t *Tree) Diff(to *Tree) (Changes, error) {
422 return t.DiffContext(context.Background(), to)
423}
424
425// DiffContext returns a list of changes between this tree and the provided one
426// 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