git-commit-vandalism/refs
Patrick Steinhardt 69840cc0f7 refs: extract packed_refs_delete_refs() to allow control of transaction
When deleting loose refs, then we also have to delete the refs in the
packed backend. This is done by calling `refs_delete_refs()`, which
then uses the packed-backend's logic to delete refs. This doesn't allow
us to exercise any control over the reference transaction which is being
created in the packed backend, which is required in a subsequent commit.

Extract a new function `packed_refs_delete_refs()`, which hosts most of
the logic to delete refs except for creating the transaction itself.
Like this, we can easily create the transaction in the files backend
and thus exert more control over it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2022-01-17 11:01:44 -08:00
..
debug.c Merge branch 'hn/reflog-tests' 2021-12-15 09:39:49 -08:00
files-backend.c refs: extract packed_refs_delete_refs() to allow control of transaction 2022-01-17 11:01:44 -08:00
iterator.c use CALLOC_ARRAY 2021-03-13 16:00:09 -08:00
packed-backend.c refs: extract packed_refs_delete_refs() to allow control of transaction 2022-01-17 11:01:44 -08:00
packed-backend.h refs: extract packed_refs_delete_refs() to allow control of transaction 2022-01-17 11:01:44 -08:00
ref-cache.c Merge branch 'jt/no-abuse-alternate-odb-for-submodules' 2021-10-25 16:06:56 -07:00
ref-cache.h Merge branch 'jt/no-abuse-alternate-odb-for-submodules' 2021-10-25 16:06:56 -07:00
refs-internal.h Merge branch 'hn/create-reflog-simplify' 2021-12-10 14:35:13 -08:00