]> git.ipfire.org Git - thirdparty/git.git/commit
files-backend: move `lock` member to `files_ref_store`
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 22 May 2017 14:17:40 +0000 (16:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2017 05:29:54 +0000 (14:29 +0900)
commit55c6bc37c90e134e9da39b8cce1f3084318374d3
tree6f221976b0cd21bbdd3aedb2140da550bcc13d6e
parent0978f4ba7fe571d96b9f13827bdac6c30eeebfa2
files-backend: move `lock` member to `files_ref_store`

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 `packed_refs_lock` to make its
purpose clearer in its new home. More changes are coming here shortly.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c