3
3
#
4
4
# This module is part of GitPython and is released under
5
5
# 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"""
9
7
10
8
from errors import GitCommandError
11
9
from git .utils import LazyMixin , Iterable , IterableList
@@ -137,6 +135,7 @@ def update(self, op_code, cur_count, max_count=None, message=''):
137
135
``message``
138
136
In case of the 'WRITING' operation, it contains the amount of bytes
139
137
transferred. It may possibly be used for other purposes as well.
138
+
140
139
You may read the contents of the current line in self._cur_line
141
140
"""
142
141
pass
@@ -145,15 +144,17 @@ def update(self, op_code, cur_count, max_count=None, message=''):
145
144
class PushInfo (object ):
146
145
"""
147
146
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
154
154
# 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
156
156
# it to local_ref.commit. Will be None if an error was indicated
157
+
157
158
"""
158
159
__slots__ = ('local_ref' , 'remote_ref_string' , 'flags' , 'old_commit' , '_remote' )
159
160
0 commit comments