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

Method Tree

plumbing/object/commit.go:91–93  ·  view source on GitHub ↗

Tree returns the Tree from the commit.

()

Source from the content-addressed store, hash-verified

89
90// Tree returns the Tree from the commit.
91func (c *Commit) Tree() (*Tree, error) {
92 return GetTree(c.s, c.TreeHash)
93}
94
95// PatchContext returns the Patch between the actual commit and the provided one.
96// Error will be return if context expires. Provided context must be non-nil.

Callers 5

TestNoFileFilemodesMethod · 0.95
PatchContextMethod · 0.95
FileMethod · 0.95
FilesMethod · 0.95
StatsContextMethod · 0.95

Calls 1

GetTreeFunction · 0.85

Tested by 1

TestNoFileFilemodesMethod · 0.76