git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] Add an update=none option for 'loose' submodules
@ 2011-06-06 20:57 Heiko Voigt
  2011-06-06 20:57 ` [RFC PATCH 1/2] submodule: move update configuration variable further up Heiko Voigt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Heiko Voigt @ 2011-06-06 20:57 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-09 18:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-06 20:57 [RFC PATCH 0/2] Add an update=none option for 'loose' submodules Heiko Voigt
2011-06-06 20:57 ` [RFC PATCH 1/2] submodule: move update configuration variable further up Heiko Voigt
2011-06-06 20:57 ` [RFC PATCH 2/2] add update 'none' flag to disable update of submodule by default Heiko Voigt
2011-06-09 18:06 ` [RFC PATCH 0/2] Add an update=none option for 'loose' submodules Jens Lehmann

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).