Re: Disk waste with packs and .keep files

2014-06-10 Thread Jeff King
On Tue, Jun 10, 2014 at 02:53:21PM -0400, Jeff King wrote: > This patch is the minimal fix to restore the desired > behavior for the default state. However, the real fix will > be more involved. This patch actually breaks t7700, but because the test is wrong. Double yikes. All fixed in my series,

Re: Disk waste with packs and .keep files

2014-06-10 Thread Jeff King
On Tue, Jun 10, 2014 at 10:21:03AM +0200, Matthieu Moy wrote: > Since a few weeks however, Git started wasting my disk space: instead of > creating small .pack files next to the big .keep-ed pack files, it seems > to create redundant, big .pack files (i.e. I get N pack files of similar > size). "g

Disk waste with packs and .keep files

2014-06-10 Thread Matthieu Moy
Hi, To minimize useless on-disk changes, I have a script that periodically creates .keep files for pack files greater than 10 Mb (so than tools like unison and incremental backup remain efficient). From time to time, I delete these .keep files and "git gc" each repo. This worked well for years. S