]> git.ipfire.org Git - thirdparty/git.git/commit
refs: pass storage format to `ref_store_init()` explicitly
authorPatrick Steinhardt <ps@pks.im>
Thu, 6 Jun 2024 05:29:06 +0000 (07:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2024 16:04:31 +0000 (09:04 -0700)
commit6e1683ace981b094d9adbd08de406bf59d39b549
treee6b3536bbf94eaa0d77597e59330ded4b93f8843
parent318efb966bc9b246703152f77cadd4e407de7cd9
refs: pass storage format to `ref_store_init()` explicitly

We're about to introduce logic to migrate refs from one storage format
to another one. This will require us to initialize a ref store with a
different format than the one used by the passed-in repository.

Prepare for this by accepting the desired ref storage format as
parameter.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c