From 69dd8750be1fbf55010a738dc1ced4655e727f23 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 22 Jun 2010 00:05:37 +0200 Subject: index.write_tree: initial version implemented, although its not yet working correctly, a test to explicitly compare the git version with the python implementation is still missing Tree and Index internally use 20 byte shas, converting them only as needed to reduce memory footprint and processing time objects: started own 'fun' module containing the most important tree functions, more are likely to be added soon --- lib/git/utils.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'lib/git/utils.py') diff --git a/lib/git/utils.py b/lib/git/utils.py index 3fb7fbf8..38501292 100644 --- a/lib/git/utils.py +++ b/lib/git/utils.py @@ -10,12 +10,14 @@ import time import tempfile from gitdb.util import ( - make_sha, - FDStreamWrapper, - LockedFD, - file_contents_ro, - LazyMixin - ) + make_sha, + FDStreamWrapper, + LockedFD, + file_contents_ro, + LazyMixin, + to_hex_sha, + to_bin_sha + ) def stream_copy(source, destination, chunk_size=512*1024): -- cgit v1.2.1