Entries returns the list of pending tree entries.
()
| 192 | |
| 193 | // Entries returns the list of pending tree entries. |
| 194 | func (a *Applier) Entries() []*github.TreeEntry { |
| 195 | entries := make([]*github.TreeEntry, 0, len(a.entries)) |
| 196 | for _, e := range a.entries { |
| 197 | entries = append(entries, e) |
| 198 | } |
| 199 | return entries |
| 200 | } |
| 201 | |
| 202 | // CreateTree creates a tree from the pending tree entries and clears the entry |
| 203 | // list. The new tree serves as the base tree for future Apply calls. |