Re: [PATCH 09/16] prune: factor out loose-object directory traversal
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 3, 2014, 22:19 UTC
- Message-ID
- <xmqqoatskd8u.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <20141003202943.GI16293@peff.net>
Jeff King <peff@peff.net> writes:
> Prune has to walk $GIT_DIR/objects/?? in order to find the > set of loose objects to prune. Other parts of the code > (e.g., count-objects) want to do the same. Let's factor it > out into a reusable for_each-style function.
Doesn't fsck also look at these as well? I recall that we also have a "sort by inum" trick employed there. Would it also be applicable to these two callers?