]> Kevux Git Server - rit/commit
refs: deduplicate code to delete references
authorPatrick Steinhardt <ps@pks.im>
Tue, 14 Nov 2023 08:58:46 +0000 (09:58 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Nov 2023 01:12:12 +0000 (10:12 +0900)
commitd6f8e7298254d8291724f9f57648b3ab5f8d3770
treed879f6bb5d55f46db41b55c6ac46c71fcbc868e6
parente85e5dd78aea907702970ae121b0b4e29b3ea90b
refs: deduplicate code to delete references

Both the files and the packed-refs reference backends now use the same
generic transactions-based code to delete references. Let's pull these
implementations up into `refs_delete_refs()` to deduplicate the code.

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