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

Method transform

pygit2/refspec.py:87–91  ·  view source on GitHub ↗

Transform a reference name according to this refspec from the lhs to the rhs. Return an string.

(self, ref: str)

Source from the content-addressed store, hash-verified

85 C.git_buf_dispose(buf)
86
87 def transform(self, ref: str) -> str:
88 """Transform a reference name according to this refspec from the lhs to
89 the rhs. Return an string.
90 """
91 return self._transform(ref, C.git_refspec_transform)
92
93 def rtransform(self, ref: str) -> str:
94 """Transform a reference name according to this refspec from the lhs to

Callers 1

test_refspecFunction · 0.80

Calls 1

_transformMethod · 0.95

Tested by 1

test_refspecFunction · 0.64