Re: [PATCH] Prevent megablobs from gunking up git packs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jakub Narebski <jnareb@xxxxxxxxx> writes:

> No, I was thinking about separate _kept_ pack (so it would be not 
> repacked unless -f option is given) containing _only_ the large blobs.
> The only difference between this and your proposal is that megablobs
> would be in their mergablobs pack, but not loose.

I am not sure about the "unless -f option is given" part, but a
single .kept pack that contains only problematic blobs would be
an interesting experiment.

 (0) prepare object names of problematic blobs, in huge.txt, one
     object name per line;

 (1) prepare a single pack that has them:

     $ N=$(git-pack-object --depth=0 --window=0 pack <huge.txt)
     $ echo 'Huge blobs -- do not repack' >pack-$N.keep
     $ mv pack-$N.* .git/object/pack/.

 (2) repack the remainder, with the default depth/window:

     $ git repack -a -d
     $ git prune


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux