Thread (1 message) 1 message, 1 author, 2021-01-29

Re: [PATCH 01/10] packfile: introduce 'find_kept_pack_entry()'

From: Junio C Hamano <hidden>
Date: 2021-01-29 20:22:16

Jeff King [off-list ref] writes:
So the more compelling argument, I think, is something like:

  - you sometimes want to know if object X is any kept packs

  - you can't use find_pack_entry(), because it only gives you the first
    pack it finds

  - you can walk over all packs and look for the object in each.
    pack-objects does this. But it's slow, because you are looking in
    packs you don't care about.

  - so it's helpful for the lookup to know up front which packs are
    interesting to find objects in and which are not, to avoid looking
    in the uninteresting ones
That does make sense.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help