aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-03-04 11:49:08 +0100
committerJunio C Hamano <gitster@pobox.com>2024-03-04 10:19:39 -0800
commit3b6dd6ad1da614dec42576de416e819cb77b1592 (patch)
treefc7b066a9220fa308cbaad9cc125d36109ca2cbe /builtin/commit.c
parentreftable/merged: remove unnecessary null check for subiters (diff)
downloadgit-3b6dd6ad1da614dec42576de416e819cb77b1592.tar.gz
git-3b6dd6ad1da614dec42576de416e819cb77b1592.zip
reftable/merged: handle subiter cleanup on close only
When advancing one of the subiters fails we immediately release resources associated with that subiter. This is not necessary though as we will release these resources when closing the merged iterator anyway. Drop the logic and only release resources when the merged iterator is done. This is a mere cleanup that should help reduce the cognitive load when reading through the code. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions