git/refs
John Cai 4fe42f326e pack-refs: teach pack-refs --include option
Allow users to be more selective over which refs to pack by adding an
--include option to git-pack-refs.

The existing options allow some measure of selectivity. By default
git-pack-refs packs all tags. --all can be used to include all refs,
and the previous commit added the ability to exclude certain refs with
--exclude.

While these knobs give the user some selection over which refs to pack,
it could be useful to give more control. For instance, a repository may
have a set of branches that are rarely updated and would benefit from
being packed. --include would allow the user to easily include a set of
branches to be packed while leaving everything else unpacked.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-05-12 14:54:14 -07:00
..
debug.c pack-refs: teach --exclude option to exclude refs from being packed 2023-05-12 14:54:14 -07:00
files-backend.c pack-refs: teach pack-refs --include option 2023-05-12 14:54:14 -07:00
iterator.c treewide: remove unnecessary cache.h inclusion from several sources 2023-03-21 10:56:51 -07:00
packed-backend.c pack-refs: teach --exclude option to exclude refs from being packed 2023-05-12 14:54:14 -07:00
packed-backend.h Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'" 2022-04-13 15:51:33 -07:00
ref-cache.c alloc.h: move ALLOC_GROW() functions from cache.h 2023-02-23 17:25:28 -08:00
ref-cache.h treewide: reduce includes of cache.h in other headers 2023-04-11 08:52:11 -07:00
refs-internal.h pack-refs: teach --exclude option to exclude refs from being packed 2023-05-12 14:54:14 -07:00