git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lars Hjemli <hjemli@gmail.com>
To: Fabian Franz <git@fabian-franz.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] submodule: add --no-fetch parameter to update command
Date: Fri, 6 Feb 2009 19:01:25 +0100	[thread overview]
Message-ID: <8c5c35580902061001m6259d4ebt1c0dea7691b0a5dc@mail.gmail.com> (raw)
In-Reply-To: <1233872312-17781-1-git-send-email-git@fabian-franz.de>

On Thu, Feb 5, 2009 at 23:18, Fabian Franz <git@fabian-franz.de> wrote:
> git submodule update --no-fetch makes it possible to use git submodule
> update in complete offline mode by not fetching new revisions.

This is nice, but it would be even nicer IMHO if "submodule update"
first tried to checkout the submodule commit and only if that failed
would it try to fetch objects (before re-trying the checkout).


>  Documentation/git-submodule.txt |    7 ++++++-
>  git-submodule.sh                |   19 ++++++++++++++++---
>  2 files changed, 22 insertions(+), 4 deletions(-)

Extending t/t7400-submodule-basic.sh would also be nice (either for
--no-fetch or for a less fetchy "submodule update").

--
larsh

  reply	other threads:[~2009-02-06 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-05 22:18 [PATCH] submodule: add --no-fetch parameter to update command Fabian Franz
2009-02-06 18:01 ` Lars Hjemli [this message]
2009-02-07 15:44   ` Fabian Franz
2009-02-07  8:44 ` Junio C Hamano

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=8c5c35580902061001m6259d4ebt1c0dea7691b0a5dc@mail.gmail.com \
    --to=hjemli@gmail.com \
    --cc=git@fabian-franz.de \
    --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).