git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: "Philip Oakley" <philipoakley@iee.org>
Cc: "Phil Hord" <phil.hord@gmail.com>,
	"Pierre Thierry" <pierre@nothos.net>, <git@vger.kernel.org>,
	"Jens Lehmann" <Jens.Lehmann@web.de>
Subject: Re: Location-agnostic submodules
Date: Tue, 01 May 2012 10:57:07 -0700	[thread overview]
Message-ID: <7v4nrzaioc.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <732A8D2DB3374CD6BC12A5E7C4384313@PhilipOakley> (Philip Oakley's message of "Tue, 1 May 2012 18:19:38 +0100")

"Philip Oakley" <philipoakley@iee.org> writes:

> Would an alternative be something like:
>    git submodule update <module> --from <remote>
>
> so that the user can state which of the current submodule's remotes
> should be used for fetching the desired update.

Are you assuming that the <remote> in the above example will be different
per invocation for a single user?  I would imagine not---it would be more
like "the upstream has this URL in .gitmodules, but this other mirror is
closer to my network environment", i.e.

	cd <module's directory> && git config remote.origin.url $there

no?

  reply	other threads:[~2012-05-01 17:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27 14:37 Location-agnostic submodules Pierre Thierry
2012-04-30 20:39 ` Phil Hord
2012-04-30 22:02   ` Pierre Thierry
2012-05-01 15:16     ` Phil Hord
2012-05-01 17:19       ` Philip Oakley
2012-05-01 17:57         ` Junio C Hamano [this message]
2012-05-01 19:58           ` Philip Oakley
2012-05-02 16:55           ` Heiko Voigt

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=7v4nrzaioc.fsf@alter.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=Jens.Lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=phil.hord@gmail.com \
    --cc=philipoakley@iee.org \
    --cc=pierre@nothos.net \
    /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).