33#
44# This module is part of GitPython and is released under
55# the BSD License: http://www.opensource.org/licenses/bsd-license.php
6- """
7- Module implementing a remote object allowing easy access to git remotes
8- """
6+ """Module implementing a remote object allowing easy access to git remotes"""
97
108from errors import GitCommandError
119from git .utils import LazyMixin , Iterable , IterableList
@@ -137,6 +135,7 @@ def update(self, op_code, cur_count, max_count=None, message=''):
137135 ``message``
138136 In case of the 'WRITING' operation, it contains the amount of bytes
139137 transferred. It may possibly be used for other purposes as well.
138+
140139 You may read the contents of the current line in self._cur_line
141140 """
142141 pass
@@ -145,15 +144,17 @@ def update(self, op_code, cur_count, max_count=None, message=''):
145144class PushInfo (object ):
146145 """
147146 Carries information about the result of a push operation of a single head::
148- info = remote.push()[0]
149- info.flags # bitflags providing more information about the result
150- info.local_ref # Reference pointing to the local reference that was pushed
151- # It is None if the ref was deleted.
152- info.remote_ref_string # path to the remote reference located on the remote side
153- info.remote_ref # Remote Reference on the local side corresponding to
147+
148+ info = remote.push()[0]
149+ info.flags # bitflags providing more information about the result
150+ info.local_ref # Reference pointing to the local reference that was pushed
151+ # It is None if the ref was deleted.
152+ info.remote_ref_string # path to the remote reference located on the remote side
153+ info.remote_ref # Remote Reference on the local side corresponding to
154154 # the remote_ref_string. It can be a TagReference as well.
155- info.old_commit # commit at which the remote_ref was standing before we pushed
155+ info.old_commit # commit at which the remote_ref was standing before we pushed
156156 # it to local_ref.commit. Will be None if an error was indicated
157+
157158 """
158159 __slots__ = ('local_ref' , 'remote_ref_string' , 'flags' , 'old_commit' , '_remote' )
159160
0 commit comments