Re: [PATCH 09/23] files-backend: move `lock` member to `files_ref_store`

2017-05-17 Thread Michael Haggerty
On 05/17/2017 03:15 PM, Jeff King wrote: > On Wed, May 17, 2017 at 02:05:32PM +0200, Michael Haggerty wrote: > >> @@ -70,6 +61,13 @@ struct files_ref_store { >> >> struct ref_cache *loose; >> struct packed_ref_cache *packed; >> + >> +/* >> + * Iff the packed-refs file associate

Re: [PATCH 09/23] files-backend: move `lock` member to `files_ref_store`

2017-05-17 Thread Jeff King
On Wed, May 17, 2017 at 02:05:32PM +0200, Michael Haggerty wrote: > @@ -70,6 +61,13 @@ struct files_ref_store { > > struct ref_cache *loose; > struct packed_ref_cache *packed; > + > + /* > + * Iff the packed-refs file associated with this instance is > + * currently loc

[PATCH 09/23] files-backend: move `lock` member to `files_ref_store`

2017-05-17 Thread Michael Haggerty
Move the `lock` member from `packed_ref_cache` to `files_ref_store`, since at most one cache can have a locked "packed-refs" file associated with it. Rename it to `packlock` to make its purpose clearer in its new home. More changes are coming here shortly. Signed-off-by: Michael Haggerty --- ref