git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: 4dr14n31t0r Th3 G4m3r <4dr14n31t0r@gmail.com>
To: git@vger.kernel.org
Subject: Feature Request: Add 'active' configuration to .gitmodules
Date: Mon, 6 Jul 2020 12:19:54 +0200	[thread overview]
Message-ID: <CAOKK28C4-3-+rxcggYdYuzuxNqdstA8BfJtY63KkHF=iZ+soxg@mail.gmail.com> (raw)

There are cases in which reading the 'active' config from the
.gitmodules file can be useful. For instance, if you are working in a
feature branch in the superproject and that feature requires some
submodules to be active, it is redundant to each time any new
developer that checks out this feature branch to also mark as active
these submodules. This way, when you record the contents of the
superproject in a commit you can also record which submodules where
active at the moment.

You can have git reading first the active config from .git/config, and
if that configuration is not present use the one in .gitmodules to
allow compatibility with older versions of git.

If you read the url configuration from the .gitmodules file the same
way, you wouldn't have to initialize each time the submodules.

                 reply	other threads:[~2020-07-06 10:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOKK28C4-3-+rxcggYdYuzuxNqdstA8BfJtY63KkHF=iZ+soxg@mail.gmail.com' \
    --to=4dr14n31t0r@gmail.com \
    --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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).