Reduce number of changes to pack file.
- From
- Chandra Sukiman <tmcchandra@gmail.com>
- Date
- Mar 28, 2011, 03:33 UTC
- Message-ID
- <AANLkTimFKGrSCgBShtERaGfd=9y+=q-aHsN3u5Lvf52v@mail.gmail.com>
- In-Reply-To
- <AANLkTikqaD7QPCCw86OgGvCHLz1ySu5CzQXoY2rAojxB@mail.gmail.com>
Hi,
I am using git with Dropbox (see http://stackoverflow.com/questions/1960799/using-gitdropbox-together-effectively). Basically I created a bare repository at dropbox and everyone uses that for central repository. As the repository size is getting bigger, sometime during the git gc, it will create a huge .pack file (300 mb) which need to be uploaded and downloaded by everyone. I tried to limit the size of the pack to 10m (pack.packSizeLimit = 10m), but when doing gc, what happens now is that most of the pack files will get re-arranged and modified. This will cause the same upload/download issue that I want to solve.
Is there any way for git gc to reduce the number of file changed?
Thank you
Chandra