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

Feature Request: Add 'active' configuration to .gitmodules

From
4G4dr14n31t0r Th3 G4m3r <4dr14n31t0r@gmail.com>
Date
Jul 6, 2020, 10:19 UTC
Message-ID
<CAOKK28C4-3-+rxcggYdYuzuxNqdstA8BfJtY63KkHF=iZ+soxg@mail.gmail.com>

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.

Message 1 of 1 in “Feature Request: Add 'active' configuration to .gitmodules”
  1. 4dr14n31t0r Th3 G4m3rJul 6, 2020

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.