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

Method __iter__

pygit2/branches.py:81–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 return None # type:ignore # next commit
80
81 def __iter__(self) -> Iterator[str]:
82 for branch_name in self._repository.listall_branches(self._flag):
83 if self._commit is None or self.get(branch_name) is not None:
84 yield branch_name
85
86 def create(self, name: str, commit: Commit, force: bool = False) -> Branch:
87 return self._repository.create_branch(name, commit, force)

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected