Re: [PATCH] Teach git-remote to update existing remotes by fetching from them
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Feb 19, 2007, 07:32 UTC
- Message-ID
- <20070219073238.GA30030@spearce.org>
- In-Reply-To
- <7virdybu9a.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 6 quoted lines
> "Theodore Ts'o" <tytso@mit.edu> writes: > > > This allows users to use the command "git remote update" to update all > > remotes that are being tracked in the repository. > > Sounds like a good idea. Thanks.
<personalwishlist>
It would be nice to define "gang remotes". For example I want to be able to have:
`git fetch cs` == `git fetch cs-one; git fetch cs-two` `git fetch jc` == `git fetch origin; git fetch alt`
Why? Well, I often have multiple remotes setup to the *same* repository depending on the SSH hostname I want to use to access that repository. This has a lot to do with the way my firewalls are setup and where I'm physically connected at any given time.
Yes, I really do have multiple remotes setup to the access the same (remote) physical disk. :)
Possible syntax:
[remote "cs"] remote = cs-one remote = cs-two [remote "jc"] remote = origin remote = alt
</personalwishlist>
Obviously this is more work than Ted's nice little patch. :)
-- Shawn.