]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
pack-refs: teach --exclude option to exclude refs from being packed
authorJohn Cai <johncai86@gmail.com>
Fri, 12 May 2023 21:34:41 +0000 (21:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 May 2023 21:54:14 +0000 (14:54 -0700)
commit826ae79fca263bc2b70c54fddacb1603c5ebb9c6
treef0a65557626ded284ed05b538dc0f886c067eb82
parent283174b214c4c5416772dcacbc6389dd192969a0
pack-refs: teach --exclude option to exclude refs from being packed

At GitLab, we have a system that creates ephemeral internal refs that
don't live long before getting deleted. Having an option to exclude
certain refs from a packed-refs file allows these internal references to
be deleted much more efficiently.

Add an --exclude option to the pack-refs builtin, and use the ref
exclusions API to exclude certain refs from being packed into the final
packed-refs file

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-pack-refs.txt
builtin/pack-refs.c
refs.c
refs.h
refs/debug.c
refs/files-backend.c
refs/packed-backend.c
refs/refs-internal.h
revision.h
t/helper/test-ref-store.c
t/t3210-pack-refs.sh