]> git.ipfire.org Git - thirdparty/git.git/commit
refs: implement removal of ref storages
authorPatrick Steinhardt <ps@pks.im>
Thu, 6 Jun 2024 05:29:39 +0000 (07:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Jun 2024 16:04:33 +0000 (09:04 -0700)
commit64a6dd8ffc2f120fc13e438af3236aa00cebc241
tree6ec995c11d46992c8bc9745880a8ca3a6cd1cfcf
parent1339cb3c47aafb08a51d2517fcbaed2954d7d127
refs: implement removal of ref storages

We're about to introduce logic to migrate ref storages. One part of the
migration will be to delete the files that are part of the old ref
storage format. We don't yet have a way to delete such data generically
across ref backends though.

Implement a new `delete` callback and expose it via a new
`ref_storage_delete()` function.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c
refs.h
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h
refs/reftable-backend.c