Files returns a FileIter allowing to iterate over the Tree
()
| 218 | |
| 219 | // Files returns a FileIter allowing to iterate over the Tree |
| 220 | func (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. |