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

Method get_refspec

pygit2/remotes.py:320–323  ·  view source on GitHub ↗

Return the object at the given position.

(self, n: int)

Source from the content-addressed store, hash-verified

318 return C.git_remote_refspec_count(self._remote)
319
320 def get_refspec(self, n: int) -> Refspec:
321 """Return the <Refspec> object at the given position."""
322 spec = C.git_remote_get_refspec(self._remote, n)
323 return Refspec(self, spec)
324
325 @property
326 def fetch_refspecs(self) -> list[str]:

Callers 1

test_refspecFunction · 0.80

Calls 1

RefspecClass · 0.85

Tested by 1

test_refspecFunction · 0.64