diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-03 16:35:35 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-03 16:35:35 +0200 |
commit | 38d59fc8ccccae8882fa48671377bf40a27915a7 (patch) | |
tree | 84a3671b709f9fcff39819805a4902546e4d6d66 /lib/git/objects | |
parent | 6f8ce8901e21587cd2320562df412e05b5ab1731 (diff) | |
download | gitpython-38d59fc8ccccae8882fa48671377bf40a27915a7.tar.gz |
odb: implemented loose object streaming, which is impossible to do efficiently considering that it copies string buffers all the time
Diffstat (limited to 'lib/git/objects')
-rw-r--r-- | lib/git/objects/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/objects/base.py b/lib/git/objects/base.py index f7043199..64a5678e 100644 --- a/lib/git/objects/base.py +++ b/lib/git/objects/base.py @@ -125,8 +125,8 @@ class Object(LazyMixin): Returns File Object compatible stream to the uncompressed raw data of the object """ - proc = self.repo.git.cat_file(self.type, self.sha, as_process=True) - return utils.ProcessStreamAdapter(proc, "stdout") + sha, type, size, stream = self.repo.git.stream_object_data(self.sha) + return stream def stream_data(self, ostream): """ |