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>
This commit is contained in:
@ -86,7 +86,7 @@ struct rev_cmdline_info {
|
||||
struct ref_exclusions {
|
||||
/*
|
||||
* Excluded refs is a list of wildmatch patterns. If any of the
|
||||
* patterns matches, the reference will be excluded.
|
||||
* patterns match, the reference will be excluded.
|
||||
*/
|
||||
struct string_list excluded_refs;
|
||||
|
||||
|
Reference in New Issue
Block a user