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

Method Next

index.go:652–671  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

650}
651
652func (v *IndexConflictIterator) Next() (IndexConflict, error) {
653 var cancestor *C.git_index_entry
654 var cour *C.git_index_entry
655 var ctheir *C.git_index_entry
656
657 runtime.LockOSThread()
658 defer runtime.UnlockOSThread()
659
660 ecode := C.git_index_conflict_next(&cancestor, &cour, &ctheir, v.ptr)
661 if ecode < 0 {
662 return IndexConflict{}, MakeGitError(ecode)
663 }
664 ret := IndexConflict{
665 Ancestor: newIndexEntryFromC(cancestor),
666 Our: newIndexEntryFromC(cour),
667 Their: newIndexEntryFromC(ctheir),
668 }
669 runtime.KeepAlive(v)
670 return ret, nil
671}

Callers

nothing calls this directly

Calls 2

MakeGitErrorFunction · 0.85
newIndexEntryFromCFunction · 0.85

Tested by

no test coverage detected