Re: Why repository grows after "git gc"? / Purpose of *.keep files?
From: David Tweed <hidden>
Date: 2016-06-15 22:44:36
On Mon, May 12, 2008 at 4:52 PM, Teemu Likonen [off-list ref] wrote:
Teemu Likonen wrote (2008-05-12 15:29 +0300): Probably a crazy idea: What if "gc --aggressive" first removed *.keep files and after packing and garbage-collecting and whatever it does it would add a .keep file for the newly created pack?
My understanding is that the repacking with -a redoes the computation to repack ALL the objects in every pack and loose objects, whereas what would be preferred is to try to delta new objects (loose and packed) against the existing .keep pack (extending it with the new objects) but not trying to re-deltify objects in the .keep pack. This is because .keep files are primarily for those who are cloning onto a machine that isn't powerful (maybe even a laptop/palmtop) but who are cloning from a powerful server, so that you wouldn't necessarily want to apply your strategy unconditionally. -- cheers, dave tweed__________________________ david.tweed@gmail.com Rm 124, School of Systems Engineering, University of Reading. "while having code so boring anyone can maintain it, use Python." -- attempted insult seen on slashdot