packed_refs_lock(): function renamed from lock_packed_refs()
Rename `lock_packed_refs()` to `packed_refs_lock()` for consistency with how other methods are named. Also, it's about to get some companions. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
42dfa7ecef
commit
b7de57d8d1
@ -1096,7 +1096,7 @@ static int files_pack_refs(struct ref_store *ref_store, unsigned int flags)
|
||||
struct ref_to_prune *refs_to_prune = NULL;
|
||||
struct strbuf err = STRBUF_INIT;
|
||||
|
||||
lock_packed_refs(refs->packed_ref_store, LOCK_DIE_ON_ERROR);
|
||||
packed_refs_lock(refs->packed_ref_store, LOCK_DIE_ON_ERROR);
|
||||
|
||||
iter = cache_ref_iterator_begin(get_loose_ref_cache(refs), NULL, 0);
|
||||
while ((ok = ref_iterator_advance(iter)) == ITER_OK) {
|
||||
@ -2679,7 +2679,7 @@ static int files_initial_transaction_commit(struct ref_store *ref_store,
|
||||
}
|
||||
}
|
||||
|
||||
if (lock_packed_refs(refs->packed_ref_store, 0)) {
|
||||
if (packed_refs_lock(refs->packed_ref_store, 0)) {
|
||||
strbuf_addf(err, "unable to lock packed-refs file: %s",
|
||||
strerror(errno));
|
||||
ret = TRANSACTION_GENERIC_ERROR;
|
||||
|
Reference in New Issue
Block a user