]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: register new tables as tempfiles
authorPatrick Steinhardt <ps@pks.im>
Thu, 7 Mar 2024 13:10:35 +0000 (14:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2024 20:34:13 +0000 (12:34 -0800)
commit1920d17a99e83f48c0bad5200df9f6f0d8785518
tree04c488db1f3f3134d9895113c8d08869b659a89b
parent4ae540d421c5a763a14fbe79a35d6f6ca004a21b
reftable/stack: register new tables as tempfiles

We do not register new tables which we're about to add to the stack with
the tempfile API. Those tables will thus not be deleted in case Git gets
killed.

Refactor the code to register tables as tempfiles.

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