MCPcopy Create free account
hub / github.com/libgit2/pygit2 / __next__

Method __next__

pygit2/index.py:552–567  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

550 return self
551
552 def __next__(self):
553 cancestor = ffi.new('git_index_entry **')
554 cours = ffi.new('git_index_entry **')
555 ctheirs = ffi.new('git_index_entry **')
556
557 err = C.git_index_conflict_next(cancestor, cours, ctheirs, self._iter)
558 if err == C.GIT_ITEROVER:
559 raise StopIteration
560
561 check_error(err)
562
563 ancestor = IndexEntry._from_c(cancestor[0])
564 ours = IndexEntry._from_c(cours[0])
565 theirs = IndexEntry._from_c(ctheirs[0])
566
567 return ancestor, ours, theirs

Callers

nothing calls this directly

Calls 2

check_errorFunction · 0.85
_from_cMethod · 0.45

Tested by

no test coverage detected