Note that Refspec constructor is internal. Fix typo.

This commit is contained in:
Matthew Duggan
2015-01-12 18:23:03 -08:00
parent 34fb1c00eb
commit b2abfdec9e

View File

@@ -35,6 +35,7 @@ from .utils import to_bytes
class Refspec(object): class Refspec(object):
"""The constructor is for internal use only"""
def __init__(self, owner, ptr): def __init__(self, owner, ptr):
self._owner = owner self._owner = owner
self._refspec = ptr self._refspec = ptr
@@ -95,7 +96,7 @@ class Refspec(object):
return self._transform(ref, C.git_refspec_transform) return self._transform(ref, C.git_refspec_transform)
def rtransform(self, ref): def rtransform(self, ref):
"""transform(str) -> str """rtransform(str) -> str
Transform a reference name according to this refspec from the lhs Transform a reference name according to this refspec from the lhs
to the rhs""" to the rhs"""