packed_refs_unlock(), packed_refs_is_locked(): new functions
commit49aebcf4328d96bb984672213de76cd4c45197f2
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 23 Jun 2017 07:01:43 +0000 (23 09:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Jun 2017 20:27:33 +0000 (23 13:27 -0700)
treef84a389eead52efb743a15f9784fcc29be08ea74
parentc8bed835c2a37056aa8f61769c6d8cc7f57bc4d3
packed_refs_unlock(), packed_refs_is_locked(): new functions

Add two new public functions, `packed_refs_unlock()` and
`packed_refs_is_locked()`, with which callers can manage and query the
`packed-refs` lock externally.

Call `packed_refs_unlock()` from `commit_packed_refs()` and
`rollback_packed_refs()`.

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