Skip to content

Commit a1a5976

Browse files
committed
Merge pull request #368 from PonteIneptique/issue-330
Added CHECKING_OUT as a logged operation
2 parents 0900a51 + 4a87001 commit a1a5976

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: git/util.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ class RemoteProgress(object):
165165
Handler providing an interface to parse progress information emitted by git-push
166166
and git-fetch and to dispatch callbacks allowing subclasses to react to the progress.
167167
"""
168-
_num_op_codes = 8
169-
BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING, FINDING_SOURCES = \
168+
_num_op_codes = 9
169+
BEGIN, END, COUNTING, COMPRESSING, WRITING, RECEIVING, RESOLVING, FINDING_SOURCES, CHECKING_OUT = \
170170
[1 << x for x in range(_num_op_codes)]
171171
STAGE_MASK = BEGIN | END
172172
OP_MASK = ~STAGE_MASK
@@ -231,6 +231,8 @@ def _parse_progress_line(self, line):
231231
op_code |= self.RESOLVING
232232
elif op_name == 'Finding sources':
233233
op_code |= self.FINDING_SOURCES
234+
elif op_name == 'Checking out files':
235+
op_code |= self.CHECKING_OUT
234236
else:
235237
# Note: On windows it can happen that partial lines are sent
236238
# Hence we get something like "CompreReceiving objects", which is

0 commit comments

Comments
 (0)