Hi Shubham On 07/09/2024 20:33, Shubham Kanodia wrote:
I agree — there are rarely reasons to keep a different fetch behavior for prefetch vs. fetch all, and `skipFetchAll` should do the trick for most use cases. My original goal was to restrict refs anyway, I don't work with multiple remotes either. I'd have perhaps expected these properties to be documented (or at least referenced) in the documentation for `git-fetch`. The only place `skipFetchAll` is currently documented is in this large master list of configs that are easy to miss — https://git-scm.com/docs/git-config.
We could perhaps expand the documentation of `git fetch --all` to mention skipFetchAll
If there's a consensus, I'll switch to submitting a patch for `prefetchref` instead.
I think that would be a useful addition. Given the names of the existing refspec variables end '.fetch' and '.push' I'd be tempted to call it 'remote.<remote>.prefetch'.
Best Wishes Phillip