(self)
| 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.""" |
no test coverage detected