Re: We should add a "git gc --auto" after "git clone" due to commit graph
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Oct 3, 2018, 18:47 UTC
- Message-ID
- <87lg7ehnps.fsf@evledraar.gmail.com>
- In-Reply-To
- <CAGZ79kbYX79Pk=xR3hY6NHaRQd7KMWwvacNVyW8=QpLorzXihQ@mail.gmail.com>
On Wed, Oct 03 2018, Stefan Beller wrote:
Show 6 quoted lines
>> So we wouldn't be spending 5 minutes repacking linux.git right after >> cloning it, just ~10s generating the commit graph, and the same would >> happen if you rm'd .git/objects/info/commit-graph and ran "git commit", >> which would kick of "gc --auto" in the background and do the same thing. > > Or generating local bitmaps or pack idx files as well?
I'm less familiar with this area, but when I clone I get a pack *.idx file, why does it need to be regenerated?
But yeah, in principle this would be a sensible addition, but I'm not aware of cases where clients get significant benefits from bitmaps (see https://githubengineering.com/counting-objects/), and I don't turn it on for clients, but maybe I've missed something.