git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Re*: What's cooking draft as of 2024-09-06 late night

From
PWPhillip Wood <phillip.wood123@gmail.com>
Date
Sep 9, 2024, 09:13 UTC
Message-ID
<125aab1b-d017-45c1-b93c-ee43fef9bd71@gmail.com>
In-Reply-To
<CAG=Um+0X3Umt-2TQ-BGeefqdGxfVoy2Ug0tGKLycrX=_pj=oJw@mail.gmail.com>
Hi Shubham
On 07/09/2024 20:33, Shubham Kanodia wrote:
Show 11 quoted lines
> 
> 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
Previous: Shubham KanodiaNext: Junio C Hamano
Message 5 of 9 in “What's cooking draft as of 2024-09-06 late night”
  1. Junio C HamanoSep 7, 2024
  2. Phillip WoodSep 7, 2024
  3. Re*: What's cooking draft as of 2024-09-06 late nightJunio C Hamano, Sep 7, 2024
  4. Shubham KanodiaSep 7, 2024
  5. Phillip WoodSep 9, 2024
  6. Junio C HamanoSep 9, 2024
  7. Phillip WoodSep 10, 2024
  8. Junio C HamanoSep 10, 2024
  9. Phillip WoodSep 9, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.