MCPcopy Create free account
hub / github.com/libgit2/git2go / newBranchIteratorFromC

Function newBranchIteratorFromC

branch.go:38–42  ·  view source on GitHub ↗
(repo *Repository, ptr *C.git_branch_iterator)

Source from the content-addressed store, hash-verified

36type BranchIteratorFunc func(*Branch, BranchType) error
37
38func 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
44func (i *BranchIterator) Next() (*Branch, BranchType, error) {
45

Callers 1

NewBranchIteratorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…