reftable/stack: register compacted tables as tempfiles
commit60c4c425155c61a081cc035240ee649aa2cb2e37
authorPatrick Steinhardt <ps@pks.im>
Thu, 7 Mar 2024 13:10:43 +0000 (7 14:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2024 20:34:14 +0000 (7 12:34 -0800)
tree95551bacdedf15cf3e4065c6ebe1b43877a9371c
parent3a60f6a2c472e8291894308247a8fecb0c76cb51
reftable/stack: register compacted tables as tempfiles

We do not register tables resulting from stack compaction with the
tempfile API. Those tables will thus not be deleted in case Git gets
killed.

Refactor the code to register compacted tables as tempfiles.

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