git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <bonzini@gnu.org>
To: git@vger.kernel.org
Subject: Re: [RFC/PATCH 1/4] Teach the --all option to 'git fetch'
Date: Sun, 08 Nov 2009 22:08:11 +0100	[thread overview]
Message-ID: <hd7bvr$aul$2@ger.gmane.org> (raw)
In-Reply-To: <4AF6E7A6.5060209@gmail.com>

On 11/08/2009 04:45 PM, Björn Gustavsson wrote:
> '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

      reply	other threads:[~2009-11-08 21:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-08 15:45 [RFC/PATCH 1/4] Teach the --all option to 'git fetch' Björn Gustavsson
2009-11-08 21:08 ` Paolo Bonzini [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hd7bvr$aul$2@ger.gmane.org' \
    --to=bonzini@gnu.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).