From: Junio C Hamano <gitster@pobox.com>
To: Fabian Franz <git@fabian-franz.de>
Cc: git@vger.kernel.org, hjemli@gmail.com
Subject: Re: [PATCH] submodule: add --no-fetch parameter to update command
Date: Sat, 07 Feb 2009 00:44:39 -0800 [thread overview]
Message-ID: <7vbptey6tk.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1233872312-17781-1-git-send-email-git@fabian-franz.de> (Fabian Franz's message of "Thu, 5 Feb 2009 20:18:32 -0200")
Fabian Franz <git@fabian-franz.de> writes:
> git submodule update --no-fetch makes it possible to use git submodule
> update in complete offline mode by not fetching new revisions.
>
> This does make sense in the following setup:
>
> * There is an unstable and a stable branch in the super/master repository.
> * The submodules might be at different revisions in the branches.
> * You are at some place without internet connection ;)
>
> With this patch it is now possible to change branches and update
> the submodules to be at the recorded revision without online access.
How is this better than "cd submodule/path && git checkout whatever"?
> Another advantage is that with -N the update operation is faster,
> because fetch is checking for new updates even if there was no
> fetch/pull on the super/master repository since the last update.
Do we know this is common enough to deserve a shortopt -N?
The logic of the patch itself looks sane to me.
prev parent reply other threads:[~2009-02-07 8:46 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
2009-02-07 15:44 ` Fabian Franz
2009-02-07 8:44 ` Junio C Hamano [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=7vbptey6tk.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@fabian-franz.de \
--cc=git@vger.kernel.org \
--cc=hjemli@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.