summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/git/util.py b/git/util.py
index 4de736d3..34b09d32 100644
--- a/git/util.py
+++ b/git/util.py
@@ -249,6 +249,14 @@ class RemoteProgress(object):
# END for each sub line
return failed_lines
+ def new_message_handler(self):
+ """:return: a progress handler suitable for handle_process_output(), passing lines on to this Progress
+ handler in a suitable format"""
+ def handler(line):
+ return self._parse_progress_line(line.rstrip())
+ # end
+ return handler
+
def line_dropped(self, line):
"""Called whenever a line could not be understood and was therefore dropped."""
pass