summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-04-05 14:15:32 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-04-05 14:15:32 +0200
commit8af941618a851d190668602be3b6bede1544f1dc (patch)
tree0f7e314d4aed4efc507511e0d981be3e2326c2e6 /git/util.py
parenta98e0af511b728030c12bf8633b077866bb74e47 (diff)
downloadgitpython-8af941618a851d190668602be3b6bede1544f1dc.tar.gz
Moved push and fetch methods partly from remote to the gitcmdobjdb implementation, including related types. It doesn't yet work, and the omnipresence of the repo imposes a problem right now, as the required ref functionality is not yet part of the gitdb specification. theoretically, the whole ref implementation has to move into gitdb
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 7cbef07f..b979e147 100644
--- a/git/util.py
+++ b/git/util.py
@@ -189,6 +189,7 @@ class RemoteProgress(object):
# END end message handling
self.update(op_code, cur_count, max_count, message)
+ self(message)
# END for each sub line
return failed_lines
@@ -221,6 +222,13 @@ class RemoteProgress(object):
You may read the contents of the current line in self._cur_line"""
pass
+
+ def __call__(self, message):
+ """Same as update, but with a simpler interface which only provides the
+ message of the operation
+ :note: This method will be called in addition to the update method. It is
+ up to you which one you implement"""
+ pass
class Actor(object):