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

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

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Jun 6, 2011, 20:57 UTC
Message-ID
<cover.1307374519.git.hvoigt@hvoigt.net>

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.

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?

If we agree that this is the correct way to approach this use case I would proceed to implement tests and documentation.

Cheers Heiko
Heiko Voigt (2):
  submodule: move update configuration variable further up
  add update 'none' flag to disable update of submodule by default
 git-submodule.sh |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)
-- 
1.7.5.1.219.g4c6b2
Next: Heiko Voigt
Message 1 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.