(index uint64)
| 105 | } |
| 106 | |
| 107 | func (t *Tree) EntryByIndex(index uint64) *TreeEntry { |
| 108 | entry := C.git_tree_entry_byindex(t.cast_ptr, C.size_t(index)) |
| 109 | if entry == nil { |
| 110 | return nil |
| 111 | } |
| 112 | |
| 113 | goEntry := newTreeEntry(entry) |
| 114 | runtime.KeepAlive(t) |
| 115 | return goEntry |
| 116 | } |
| 117 | |
| 118 | func (t *Tree) EntryCount() uint64 { |
| 119 | num := C.git_tree_entrycount(t.cast_ptr) |