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

Method _ffi_names

pygit2/remotes.py:435–440  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

433 return Remote(self._repo, cremote[0])
434
435 def _ffi_names(self) -> Generator['char_pointer', None, None]:
436 with utils.new_git_strarray() as names:
437 err = C.git_remote_list(names, self._repo._repo)
438 check_error(err)
439 for i in range(names.count):
440 yield names.strings[i] # type: ignore[index]
441
442 def names(self) -> Generator[str | None, None, None]:
443 """An iterator over the names of the available remotes."""

Callers 2

__iter__Method · 0.95
namesMethod · 0.95

Calls 1

check_errorFunction · 0.85

Tested by

no test coverage detected