]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: batch refname availability checks
authorPatrick Steinhardt <ps@pks.im>
Wed, 12 Mar 2025 15:56:11 +0000 (16:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Mar 2025 18:31:17 +0000 (11:31 -0700)
commit351f592e1d6668f07529d30f05c04725a0a17b59
treee24dba65593264b760f9bb7243394ab0a446e36d
parent2ff58dec493ab5bebb6943b814461ba4e9937e15
refs/reftable: batch refname availability checks

Refactor the "reftable" backend to batch the availability check for
refnames. This does not yet have an effect on performance as
`refs_verify_refnames_available()` effectively still performs the
availability check for each refname individually. But this will be
optimized in subsequent commits, where we learn to optimize some parts
of the logic when checking multiple refnames for availability.

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