Re: [PATCH 0/3] revision: refactor ref_excludes to ref_visibility
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 21, 2023, 20:56 UTC
- Message-ID
- <xmqqy1kcfsb6.fsf@gitster.g>
- In-Reply-To
- <pull.1515.git.git.1687376112.gitgitgadget@gmail.com>
"John Cai via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 7 quoted lines
> The ref_excludes API is used to tell which refs should be excluded. However, > there are times when we would want to add refs to explicitly include as > well. 4fe42f326e (pack-refs: teach pack-refs --include option, 2023-05-12) > taught pack-refs how to include certain refs, but did it in a more manual > way by keeping the ref patterns in a separate string list. Instead, we can > easily extend the ref_excludes API to include refs as well, since this use > case fits into the API nicely.
Hmph, how would this interact with the other topic in flight that touch the ref exclusion logic tb/refs-exclusion-and-packed-refs?
Thanks.