Files returns a FileIter allowing to iterate over the Tree
()
| 159 | |
| 160 | // Files returns a FileIter allowing to iterate over the Tree |
| 161 | func (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. |