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

Re: [RFC/PATCH 1/4] Teach the --all option to 'git fetch'

From
Paolo Bonzini <bonzini@gnu.org>
Date
Nov 8, 2009, 21:08 UTC
Message-ID
<hd7bvr$aul$2@ger.gmane.org>
In-Reply-To
<4AF6E7A6.5060209@gmail.com>
On 11/08/2009 04:45 PM, Björn Gustavsson wrote:
Show 11 quoted lines
> 'git remote' is meant for managing remotes and 'git fetch' is meant
> for actually fetching data from remote repositories. Therefore, it is
> not logical that you must use 'git remote update' to fetch from
> more than one repository at once.
>
> Add the --all option to 'git fetch', to tell it to attempt to fetch
> from all remotes. Also, if --all is not given, the<repository>
> argument is allowed to be the name of a group, to allow fetching
> from all repositories in the group.
>
> Other options except -v and -q are silently ignored.

I'm not sure about the naming of the option. The reason is that while there is no "git remote push", it makes sense (at least in this case symmetry) between "git fetch" and "git push". I would love to have a way to push to multiple remotes, for one thing. :-)

What about having "git fetch --multiple" without arguments do the same thing as "git fetch --all" (possibly renaming skipFetchAll to skipFetchDefault)?

Paolo
Previous: Björn Gustavsson
Message 2 of 2 in “Teach the --all option to 'git fetch'”
  1. 1/4 Teach the --all option to 'git fetch'Björn Gustavsson, Nov 8, 2009
  2. Paolo BonziniNov 8, 2009

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.