[PATCHv4 01/27] repository: introduce raw object store field

2018-02-23 Thread Stefan Beller
The raw object store field will contain any objects needed for access to objects in a given repository. This patch introduces the raw object store and populates it with the `objectdir`, which used to be part of the repository struct. As the struct gains members, we'll also populate the function t

Re: [PATCHv4 01/27] repository: introduce raw object store field

2018-02-26 Thread Duy Nguyen
On Fri, Feb 23, 2018 at 04:47:28PM -0800, Stefan Beller wrote: > /* The main repository */ > static struct repository the_repo = { > - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &the_index, > &hash_algos[GIT_HASH_SHA1], 0, 0 > + NULL, NULL, > + RAW_OBJECT_STORE_INIT, > +

Re: [PATCHv4 01/27] repository: introduce raw object store field

2018-02-26 Thread Junio C Hamano
Duy Nguyen writes: > diff --git a/common-main.c b/common-main.c > index 6a689007e7..a13ab981aa 100644 > --- a/common-main.c > +++ b/common-main.c > @@ -1,6 +1,7 @@ > #include "cache.h" > #include "exec_cmd.h" > #include "attr.h" > +#include "repository.h" > > /* > * Many parts of Git have

Re: [PATCHv4 01/27] repository: introduce raw object store field

2018-02-26 Thread Brandon Williams
On 02/26, Junio C Hamano wrote: > Duy Nguyen writes: > > > diff --git a/common-main.c b/common-main.c > > index 6a689007e7..a13ab981aa 100644 > > --- a/common-main.c > > +++ b/common-main.c > > @@ -1,6 +1,7 @@ > > #include "cache.h" > > #include "exec_cmd.h" > > #include "attr.h" > > +#include

Re: [PATCHv4 01/27] repository: introduce raw object store field

2018-02-26 Thread Stefan Beller
On Mon, Feb 26, 2018 at 1:30 AM, Duy Nguyen wrote: > On Fri, Feb 23, 2018 at 04:47:28PM -0800, Stefan Beller wrote: >> /* The main repository */ >> static struct repository the_repo = { >> - NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &the_index, >> &hash_algos[GIT_HASH_SHA1], 0,

Re: [PATCHv4 01/27] repository: introduce raw object store field

2018-02-26 Thread Duy Nguyen
On Tue, Feb 27, 2018 at 2:28 AM, Stefan Beller wrote: > On Mon, Feb 26, 2018 at 1:30 AM, Duy Nguyen wrote: >> On Fri, Feb 23, 2018 at 04:47:28PM -0800, Stefan Beller wrote: >>> /* The main repository */ >>> static struct repository the_repo = { >>> - NULL, NULL, NULL, NULL, NULL, NULL, NULL