[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: Partial Clone garbage collection?
From:       Jonathan Tan <jonathantanmy () google ! com>
Date:       2019-10-30 20:45:16
Message-ID: 20191030204516.53832-1-jonathantanmy () google ! com
[Download RAW message or body]

> I don't recall seeing anybody actively working on this, but I think it
> would be a good idea.

I agree with this.

> You could naively just drop everything that matches the filter, and then
> re-fetch it as needed.

We should also retain the promisor objects that are not referenced by
any other promisor object, regardless of whether it matches the filter.
(If not, the resulting repository will not pass fsck.)

The place to make this change is most likely in
repack_promisor_objects() in builtin/repack.c. Currently, it just
repacks all known promisor objects into one - modifying it to only
repack the ones we want (and adding a CLI option etc.) should be
sufficient.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic