diff options
author | Patrick Steinhardt <ps@pks.im> | 2022-01-17 09:12:31 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-17 11:01:44 -0800 |
commit | 69840cc0f7b4f3352903bd2b8f3de7077916c26b (patch) | |
tree | 76b4f1d477d6ee9dbc04daade90d9be9ffe328e8 /wildmatch.c | |
parent | The seventh batch (diff) | |
download | tgif-69840cc0f7b4f3352903bd2b8f3de7077916c26b.tar.xz |
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>
Diffstat (limited to 'wildmatch.c')
0 files changed, 0 insertions, 0 deletions