summaryrefslogtreecommitdiff
path: root/fetch-pack.c
diff options
context:
space:
mode:
authorLibravatar Jim Meyering <jim@meyering.net>2006-11-15 21:15:44 +0100
committerLibravatar Junio C Hamano <junkio@cox.net>2006-11-15 12:50:29 -0800
commitefe4abd14c75834d30e3e521b3597eb07ea9271b (patch)
tree3bc79ed8738ffef98a81ef50eb2939ce8346993f /fetch-pack.c
parentgitweb: Put back shortlog instead of graphiclog in the project list. (diff)
downloadtgif-efe4abd14c75834d30e3e521b3597eb07ea9271b.tar.xz
Run "git repack -a -d" once more at end, if there's 1MB or more of not-packed data.
Although I converted upstream coreutils to git last month, I just reconverted coreutils once again, as a test, and ended up with a git repository of about 130MB (contrast with my packed git repo of size 52MB). That was because there were a lot of commits (but < 1024) after the final automatic "git-repack -a -d". Running a final git-repack -a -d && git-prune-packed cut the final repository size down to the expected size. So this looks like an easy way to improve git-cvsimport. Just run "git repack ..." at the end if there's more than some reasonable amount of not-packed data. My choice of 1MB is a little arbitrarily. I wouldn't mind missing the minimal repo size by 1MB. At the other end of the spectrum, it's probably not worthwhile to pack everything when the total repository size is less than 1MB. Here's the patch: Signed-off-by: Jim Meyering <jim@meyering.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch-pack.c')
0 files changed, 0 insertions, 0 deletions