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

Re: [RFC PATCH 0/2] Add an update=none option for 'loose' submodules

From
Jens Lehmann <jens.lehmann@web.de>
Date
Jun 9, 2011, 18:06 UTC
Message-ID
<4DF10BB2.9050500@web.de>
In-Reply-To
<cover.1307374519.git.hvoigt@hvoigt.net>
Am 06.06.2011 22:57, schrieb Heiko Voigt:
> If a submodule is used to seperate some bigger parts of a project into
> an optional directory it is helpful to not clone/update them by default.

I think this is a good idea as some people are running "git submodule update --init --recursive" when they have to update their submodules. It would be nice to have an option to skip certain submodules then.

Show 8 quoted lines
> This series implements a new value 'none' for submodule.<name>.update.
> If this option is set a submodule will not be updated or cloned by
> default. If the user wants to work with the submodule he either needs
> to explicitely configure the update option to 'checkout' or pass
> --checkout as an option to the submodules. I chose this name to be
> consistent with the existing --merge/--rebase options.
> 
> What do you think about this approach?

It fits in nicely with my long term plan: Let the "update" flag control what happens on submodule checkout in the work tree. Another flag ("init"?) can be added later to control if a submodule should be initialized on clone or update, but that is outside the scope of this change.

> If we agree that this is the correct way to approach this use case I
> would proceed to implement tests and documentation.
+1 from me.
Previous: Heiko Voigt
Message 4 of 4 in “Add an update=none option for 'loose' submodules”
  1. 0/2 Add an update=none option for 'loose' submodulesHeiko Voigt, Jun 6, 2011
  2. 1/2 submodule: move update configuration variable further upHeiko Voigt, Jun 6, 2011
  3. 2/2 add update 'none' flag to disable update of submodule by defaultHeiko Voigt, Jun 6, 2011
  4. Jens LehmannJun 9, 2011

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.