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

Method Files

plumbing/object/commit.go:161–168  ·  view source on GitHub ↗

Files returns a FileIter allowing to iterate over the Tree

()

Source from the content-addressed store, hash-verified

159
160// Files returns a FileIter allowing to iterate over the Tree
161func (c *Commit) Files() (*FileIter, error) {
162 tree, err := c.Tree()
163 if err != nil {
164 return nil, err
165 }
166
167 return tree.Files(), nil
168}
169
170// ID returns the object ID of the commit. The returned value will always match
171// 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