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

Method ConflictIterator

index.go:639–650  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

637}
638
639func (v *Index) ConflictIterator() (*IndexConflictIterator, error) {
640 var i *C.git_index_conflict_iterator
641
642 runtime.LockOSThread()
643 defer runtime.UnlockOSThread()
644
645 ecode := C.git_index_conflict_iterator_new(&i, v.ptr)
646 if ecode < 0 {
647 return nil, MakeGitError(ecode)
648 }
649 return newIndexConflictIteratorFromC(v, i), nil
650}
651
652func (v *IndexConflictIterator) Next() (IndexConflict, error) {
653 var cancestor *C.git_index_entry

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85

Tested by

no test coverage detected