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

Method names

pygit2/remotes.py:442–445  ·  view source on GitHub ↗

An iterator over the names of the available remotes.

(self)

Source from the content-addressed store, hash-verified

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."""
444 for name in self._ffi_names():
445 yield maybe_string(name)
446
447 def create(self, name: str, url: str, fetch: str | None = None) -> Remote:
448 """Create a new remote with the given name and url. Returns a <Remote>

Callers 2

test_remote_listFunction · 0.80
test_remote_collectionFunction · 0.80

Calls 2

_ffi_namesMethod · 0.95
maybe_stringFunction · 0.85

Tested by 2

test_remote_listFunction · 0.64
test_remote_collectionFunction · 0.64