From: Junio C Hamano Date: Thu, 28 Jun 2012 22:19:51 +0000 (-0700) Subject: Merge branch 'nd/stream-pack-objects' X-Git-Tag: v1.7.12-rc0~74 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6f20ca3e092343ffffc22438aae25c013539d47e?hp=-c Merge branch 'nd/stream-pack-objects' "pack-objects" learned to read large loose blobs using the streaming API, without the need to hold everything in core at once. --- 6f20ca3e092343ffffc22438aae25c013539d47e diff --combined t/t1050-large.sh index 3f806889a9,313889b5b4..fd10528009 --- a/t/t1050-large.sh +++ b/t/t1050-large.sh @@@ -130,15 -130,22 +130,27 @@@ test_expect_success 'git-show a large f ' +test_expect_success 'index-pack' ' + git clone file://"`pwd`"/.git foo && + GIT_DIR=non-existent git index-pack --strict --verify foo/.git/objects/pack/*.pack +' + test_expect_success 'repack' ' git repack -ad ' + test_expect_success 'pack-objects with large loose object' ' + SHA1=`git hash-object huge` && + test_create_repo loose && + echo $SHA1 | git pack-objects --stdout | + GIT_ALLOC_LIMIT=0 GIT_DIR=loose/.git git unpack-objects && + echo $SHA1 | GIT_DIR=loose/.git git pack-objects pack && + test_create_repo packed && + mv pack-* packed/.git/objects/pack && + GIT_DIR=packed/.git git cat-file blob $SHA1 >actual && + cmp huge actual + ' + test_expect_success 'tar achiving' ' git archive --format=tar HEAD >/dev/null '