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

Method Tree

plumbing/object/commit.go:145–147  ·  view source on GitHub ↗

Tree returns the Tree from the commit.

()

Source from the content-addressed store, hash-verified

143
144// Tree returns the Tree from the commit.
145func (c *Commit) Tree() (*Tree, error) {
146 return GetTree(c.s, c.TreeHash)
147}
148
149// PatchContext returns the Patch between the actual commit and the provided one.
150// 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