From: Junio C Hamano Date: Thu, 15 Apr 2021 03:51:02 GMT Subject: Re: [PATCH 2/2] repack: avoid loosening promisor pack objects in partial clones Message-ID: In-Reply-To: <20210415010454.4077355-1-jonathantanmy@google.com> Jonathan Tan writes: >> When `-A` and `-d` are used together, besides packing all objects (-A) >> and removing redundant packs (-d), it also unpack all unreachable >> objects and deletes them by calling `git pruned-packed`. > > I still think of these objects as not unreachable, even though I know > that pack-objects calls them that (the argument is called > --unpack-unreachable). So I would say "it also loosens all objects that > were previously packed but did not go into the new pack", but perhaps > this is OK too. Hmph, that is puzzling. I understand that the operation about (1) finding all the objects that are still reachable and send them into a newly created pack, and (2) among the objects that were previously in the packs, eject those that weren't made into the new pack with the previous point. Where did I get it wrong? If all the reachable ones are dealt with with the first point, what is leftover is not reachable, no?