Hi Junio and Shubham On 07/09/2024 06:41, Junio C Hamano wrote:
Will merge to 'next'? - sk/enable-prefetch-per-remote 09-05 #1 <pull.1779.v4.git.1725565398681.gitgitgadget@xxxxxxxxx>
I've just taken a look at this and I'm left wondering why one would want to skip prefetching from a remote but still fetch from it with "git fetch --all". I set remote.<remote>.skipFetchAll for the remotes I don't want to prefetch. We also have remote.<remote>.skipDefaultUpdate I don't know offhand if that prevents a remote from being prefetched as well. I think being able to specify which refs are prefectched would be useful. Overloading remote.<remote>.prefetch to be a boolean or a refspec would complicate the implementation so maybe we'd be better just supporting refspecs and update the maintenance documentation to point users to the existing config for skipping prefetches.
Best Wishes Phillip