]> git.ipfire.org Git - thirdparty/git.git/commit
reftable/stack: reorder swapping in the reloaded stack contents
authorPatrick Steinhardt <ps@pks.im>
Fri, 23 Aug 2024 14:12:54 +0000 (16:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Aug 2024 15:04:47 +0000 (08:04 -0700)
commit1302ed68d4f5452242d47ac609b06b793a18ea0b
tree2b24d3408ec04351c21ddd22cae0693d3ef1ad0f
parent89eada4ea1f7a9c0a5f9b9e29592daa0847a79fc
reftable/stack: reorder swapping in the reloaded stack contents

The code flow of how we swap in the reloaded stack contents is somewhat
convoluted because we switch back and forth between swapping in
different parts of the stack.

Reorder the code to simplify it. We now first close and unlink the old
tables which do not get reused before we update the stack to point to
the new stack.

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