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

Method Files

plumbing/object/commit.go:220–227  ·  view source on GitHub ↗

Files returns a FileIter allowing to iterate over the Tree

()

Source from the content-addressed store, hash-verified

218
219// Files returns a FileIter allowing to iterate over the Tree
220func (c *Commit) Files() (*FileIter, error) {
221 tree, err := c.Tree()
222 if err != nil {
223 return nil, err
224 }
225
226 return tree.Files(), nil
227}
228
229// ID returns the object ID of the commit. The returned value will always match
230// the current value of Commit.Hash.

Callers

nothing calls this directly

Calls 2

TreeMethod · 0.95
FilesMethod · 0.65

Tested by

no test coverage detected