Re: [PATCH 2/3] midx: close multi-pack-index on repack
- Date: Tue, 9 Oct 2018 11:15:15 -0700
- From: Stefan Beller <sbeller@xxxxxxxxxx>
- Subject: Re: [PATCH 2/3] midx: close multi-pack-index on repack
On Tue, Oct 9, 2018 at 7:11 AM Derrick Stolee <stolee@xxxxxxxxx> wrote:
> CC Stefan: Is there a plan to make get_object_directory() take a
> repository parameter?
Not an immediate plan. Regarding the large refactorings I am mostly
waiting for nd/the-index to stabilize (which may be stable enough by
now) before proceeding. Specifically 2abf350385 (revision.c: remove
implicit dependency on the_index, 2018-09-21) is a missing piece that
I want to build on.
My next step is to look into making use of the refactorings that we did
over the last year, so I'd rather look into more submodule code again.
To come back to your question:
git grep get_object_directory |wc -l
git grep "objects->objectdir" |wc -l
2 out of the 11 matches are from the implementation of get_object_directory
So either we'd actually teach get_object_directory to take a repository
and inspect the 11 occurrences of direct access to objects->objectdir
or we'd view get_object_directory() as a fancy wrapper, that we might want
to drop eventually.