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

Method __len__

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

Source from the content-addressed store, hash-verified

409 self._repo = repo
410
411 def __len__(self) -> int:
412 with utils.new_git_strarray() as names:
413 err = C.git_remote_list(names, self._repo._repo)
414 check_error(err)
415 return names.count
416
417 def __iter__(self) -> Iterator[Remote]:
418 cremote = ffi.new('git_remote **')

Callers

nothing calls this directly

Calls 1

check_errorFunction · 0.85

Tested by

no test coverage detected