(repo *Repository, ptr *C.git_branch_iterator)
| 36 | type BranchIteratorFunc func(*Branch, BranchType) error |
| 37 | |
| 38 | func newBranchIteratorFromC(repo *Repository, ptr *C.git_branch_iterator) *BranchIterator { |
| 39 | i := &BranchIterator{repo: repo, ptr: ptr} |
| 40 | runtime.SetFinalizer(i, (*BranchIterator).Free) |
| 41 | return i |
| 42 | } |
| 43 | |
| 44 | func (i *BranchIterator) Next() (*Branch, BranchType, error) { |
| 45 |
no outgoing calls
no test coverage detected
searching dependent graphs…