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

Method __iter__

pygit2/references.py:54–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 return None
53
54 def __iter__(self) -> Iterator[str]:
55 iter = self._repository.references_iterator_init()
56 while True:
57 ref = self._repository.references_iterator_next(iter)
58 if ref:
59 yield ref.name
60 else:
61 return
62
63 def iterator(
64 self, references_return_type: ReferenceFilter = ReferenceFilter.ALL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected