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

new config option "fetch.all"

From
Tamino Bauknecht <dev@tb6.eu>
Date
Dec 18, 2023, 20:15 UTC
Message-ID
<cc74dc58-4fbe-470d-a212-4c2d2249918c@tb6.eu>
Hi all,

when working on repositories with different remotes, I find myself using "git fetch --all" quite often. Thus, I thought that git might benefit from having a config option "fetch.all" which will allow to always fetch all available remotes if enabled (either in global or repository config).

The same already exists for "fetch.prune" and I don't really see any downside to providing that convenience option also for "--all". A probably necessary adjustment is that if the config is enabled and a repository is explicitly specified, the specified repository should be used instead of "--all". Otherwise, the current output would be: "fatal: fetch --all does not take a repository argument".

If no one sees any further issues, I'll gladly work on this feature and provide a patch.

Best regards, Tamino Bauknecht

Next: Tamino Bauknecht
Message 1 of 23 in “new config option "fetch.all"”
  1. Tamino BauknechtDec 18, 2023
  2. fetch: add new config option fetch.allTamino Bauknecht, Jan 4, 2024
  3. Taylor BlauJan 4, 2024
  4. Eric SunshineJan 4, 2024
  5. Junio C HamanoJan 4, 2024
  6. Tamino BauknechtJan 4, 2024
  7. Taylor BlauJan 4, 2024
  8. Junio C HamanoJan 4, 2024
  9. Tamino BauknechtJan 4, 2024
  10. Junio C HamanoJan 4, 2024
  11. fetch: add new config option fetch.allTamino Bauknecht, Jan 4, 2024
  12. Eric SunshineJan 4, 2024
  13. Eric SunshineJan 4, 2024
  14. 1/2 fetch: add new config option fetch.allTamino Bauknecht, Jan 4, 2024
  15. 2/2 fetch: add cli option --default-onlyTamino Bauknecht, Jan 4, 2024
  16. Eric SunshineJan 5, 2024
  17. Junio C HamanoJan 5, 2024
  18. fetch: add new config option fetch.allTamino Bauknecht, Jan 6, 2024
  19. Eric SunshineJan 6, 2024
  20. Eric SunshineJan 6, 2024
  21. Junio C HamanoJan 8, 2024
  22. fetch: add new config option fetch.allTamino Bauknecht, Jan 8, 2024
  23. Eric SunshineJan 5, 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.