> 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.