summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-01-07 11:18:07 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-01-07 11:18:07 +0100
commit491440543571b07c849c0ef9c4ebf5c27f263bc0 (patch)
treeeb4f7d54bc9d7bd1e57472f22558ff99d099c576 /git/util.py
parentd83f6e84cbeb45dce4576a9a4591446afefa50b2 (diff)
downloadgitpython-491440543571b07c849c0ef9c4ebf5c27f263bc0.tar.gz
Implemented non-blocking operations using poll()
Next up is using threads
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