Shubham Kanodia <shubham.kanodia10@xxxxxxxxx> writes: > How should we handle the related `remote.<remote-name>.fetch` config? The get_ref_map() helper is what the rest of the code interacts with configured refspec. remote->fetch is handled there and goes through the same filter_prefetch_refspec(). > In an earlier discussion, it was discussed that — > `.prefetchref` should override `.fetch` completely (instead of > patching it) which makes sense to me. Maybe it made sense to you back when it was discussed, but after seeing the current code (before applying this patch), specifically what happens in filter_prefetch_refspec(), it no longer makes much sense to me. Especially it is nonsense to allow .prefetchref to widen the set of refs that are being prefetched beyond what is normally fetched, so we should look at a design that easily allows such a configuration with strong suspicion, I would think.