Removing old data without disturbing tree?
An upstream tree I'm mirroring with git-p4 has decided to start checking in large tarballs (150MB) periodically. It's basically a prebuild version of some firmware needed to run the rest of the software.
Git doesn't seem to have any problem with these tarballs (and is using a lot less space than P4), but I have a feeling we might start running into problems when things get real big. Does anyone have experience with packs growing beyong several GB?
Aside from that, is there an easy way to prune out the old history from a working tree? I'd like something like what 'git clone --depth n' would produce, and I suppose I could do the clone and then pivot the trees. I mainly don't want to be rewriting history, just making parts inaccessible.
Thanks,
David Brown
Quoted 8 lines · David Brown
An upstream tree I'm mirroring with git-p4 has decided to start checking in large tarballs (150MB) periodically. It's basically a prebuild version of some firmware needed to run the rest of the software.
Git doesn't seem to have any problem with these tarballs (and is using a lot less space than P4), but I have a feeling we might start running into problems when things get real big. Does anyone have experience with packs growing beyong several GB?
It should just work. It was tested with artificial data sets but that's about it.
Now if those tarballs are actually multiple revisions of the same package, you might consider storing them uncompressed and let Git delta compress them against each other which will produce an even more significant space saving.
Nicolas
Quoted 6 lines · Nicolas Pitre
Quoted 4 lines · David Brown
An upstream tree I'm mirroring with git-p4 has decided to start checking in large tarballs (150MB) periodically. It's basically a prebuild version of some firmware needed to run the rest of the software.
Quoted 8 lines
Quoted 4 lines
Git doesn't seem to have any problem with these tarballs (and is using a lot less space than P4), but I have a feeling we might start running into problems when things get real big. Does anyone have experience with packs growing beyong several GB?
It should just work. It was tested with artificial data sets but that's about it.
Now if those tarballs are actually multiple revisions of the same package, you might consider storing them uncompressed and let Git delta compress them against each other which will produce an even more significant space saving.
I did manage to talk them into leaving them uncompressed. But, they are large, and don't seem to delta compress all that well. Maybe as more come, the compression will be better.
I guess this will be a good test case... It will probably take months or even a year or so for the repo to get up to several GB.
David