Re: [PATCH v5 3/4] remote: add "git remote add --limited-fetch"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 2, 2026, 16:28 UTC
- Message-ID
- <xmqqzewwxe1y.fsf@gitster.g>
- In-Reply-To
- <b45f3cf0ab1e2dccd87cc4615e0ba15e6cc996b6.1790925198.git.gitgitgadget@gmail.com>
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 14 quoted lines
> From: Harald Nordgren <haraldnordgren@gmail.com> > > A remote added the ordinary way tracks every branch it has, via a > wildcard remote.<name>.fetch refspec. That is wasteful for a remote > whose history is only worth following for the branches actually in > use locally, and it can make "git fetch" negotiate history for > branches nobody asked for. > > Give "git remote add" a --limited-fetch option that sets up > remote.<name>.refmap instead of remote.<name>.fetch, so that > "git fetch <name>" only fetches the branches already tracked, plus > the remote's default branch, as described in the previous commit. > It is rejected together with -t/--track or --mirror, since those > already say explicitly what to fetch.
You forgot to remove ", plus the ... in the previous commit", probably, when you updated the series to stop doing so in the step [2/4].