Re: [PATCH v4] remote: allow specifying refs to prefetch
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 6, 2024, 08:20 UTC
- Message-ID
- <xmqqo72spyco.fsf@gitster.g>
- In-Reply-To
- <ZysSEJUqSKUq4PKb@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
> So yes, we'd have to teach Git to ignore "*" remotes in many places. I > would hope that it isn't all that involved and that we only need to > adjust a couple of places to ignore "*". But the remote logic is > somewhat outside of my area of expertise, so my hope might be misplaced.
I am hoping that it would not be too painful to exclude '*' from enumeration, and also, "git fetch '*'" and other things that expect the name of a remote do not say silly things like "ah, there is "remote.*.<something>" configuration defined, so '*' must be a name of a remote" ;-)
It might take certain refactoring, but if it results in a cleaner codebase, that is also a welcome outcome.
Thanks.