Re: git gc expanding packed data?
From: Andreas Schwab <hidden>
Date: 2016-06-15 22:47:12
Nicolas Pitre [off-list ref] writes:
It appears that the git installation serving clone requests for git://gcc.gnu.org/git/gcc.git generates lots of unreferenced objects. I just cloned it and the pack I was sent contains 1383356 objects (can be determined with 'git show-index < .git/objects/pack/*.idx | wc -l'). However, there are only 978501 actually referenced objects in that cloned repository ( 'git rev-list --all --objects | wc -l'). That makes for 404855 useless objects in the cloned repository.
Those objects are not useless. They are referenced by the remote refs on the remote side, which are not fetched by default. If you clone a mirror of the repository you'll see no unreferenced objects. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."