Re: [RFC PATCH 00/19] object-store refactoring 3 (replace objects, main ref store)
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Apr 7, 2018, 09:50 UTC
- Message-ID
- <CACsJy8BKKgfxUGm+SgOAENNsSaMGehU5NVbn6YuebCgUL4S0jQ@mail.gmail.com>
- In-Reply-To
- <20180406232136.253950-1-sbeller@google.com>
On Sat, Apr 7, 2018 at 1:21 AM, Stefan Beller <sbeller@google.com> wrote: *
Show 13 quoted lines
> diff --git a/repository.h b/repository.h
> index 09df94a472..2922d3a28b 100644
> --- a/repository.h
> +++ b/repository.h
> @@ -26,6 +26,11 @@ struct repository {
> */
> struct raw_object_store *objects;
>
> + /*
> + * The store in which the refs are hold.
> + */
> + struct ref_store *main_ref_store;
> +We probably should drop the main_ prefix here because this could also be a submodule ref store (when the repository is about a submodule). worktree ref store is a different story and I don't know how to best present it here yet (I'm still thinking a separate struct repository). But we can worry about that when struct repository supports multiple worktree.
-- Duy