files_pack_refs(): use a reference transaction to write packed refs
commit27d03d04d5b7e86a260d7afa283c9905f64de350
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 8 Sep 2017 13:51:47 +0000 (8 15:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 Sep 2017 18:18:04 +0000 (9 03:18 +0900)
tree3d96cdadc32f90c9ac3b4c911e3156a8cfb13073
parent2fb330ca7238088eea5c1926380feb187f4867bc
files_pack_refs(): use a reference transaction to write packed refs

Now that the packed reference store supports transactions, we can use
a transaction to write the packed versions of references that we want
to pack. This decreases the coupling between `files_ref_store` and
`packed_ref_store`.

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