git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] submodule: add --no-fetch parameter to update command

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 7, 2009, 08:44 UTC
Message-ID
<7vbptey6tk.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1233872312-17781-1-git-send-email-git@fabian-franz.de>
Fabian Franz <git@fabian-franz.de> writes:
Show 11 quoted lines
> 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.
Previous: Fabian Franz
Message 4 of 4 in “submodule: add --no-fetch parameter to update command”
  1. submodule: add --no-fetch parameter to update commandFabian Franz, Feb 5, 2009
  2. Lars HjemliFeb 6, 2009
  3. Fabian FranzFeb 7, 2009
  4. Junio C HamanoFeb 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.