From: Heiko Voigt <hvoigt@hvoigt.net>
To: git@vger.kernel.org
Subject: [RFC PATCH 0/2] Add an update=none option for 'loose' submodules
Date: Mon, 6 Jun 2011 22:57:30 +0200 [thread overview]
Message-ID: <cover.1307374519.git.hvoigt@hvoigt.net> (raw)
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 reply other threads:[~2011-06-06 20:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-06 20:57 Heiko Voigt [this message]
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
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=cover.1307374519.git.hvoigt@hvoigt.net \
--to=hvoigt@hvoigt.net \
--cc=git@vger.kernel.org \
/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 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).