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

Re: sudmodule.<name>.recurse ignored

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 7, 2022, 21:13 UTC
Message-ID
<xmqq35bze3rr.fsf@gitster.g>
In-Reply-To
<kl6lpmf3wdk6.fsf@chooglen-macbookpro.roam.corp.google.com>
Glen Choo <chooglen@google.com> writes:
Show 11 quoted lines
> - where to get the submodule from during a fetch/clone, e.g.
>   `submodule.<name>.url`, `submodule.<name>.branch`
> - information needed for submodules to work correctly, e.g.
>   `submodule.<name>.path`
> - default config that gets populated in .git/config via `git submodule
>   init`, e.g. `submodule.<name>.update`,
>   `submodule.<name>.fetchRecurseSubmodules`
>
> With respect to config, the general stance is that .gitmodules is meant
> to provide defaults for .git/config and _not_ to be read directly (see
> Ævar's answer).
I think that is a sensible way to think about this.

It is more like "suggestion made by the upstream", to be taken after examining it, just like you should type "make" after examining the Makefile. At least enough to trust its contents ;-)

> There are some very limited cases where config is read
> directly from .gitmodules, but that approach is very frowned upon and
> it's unlikely that we'll add more of them in the future.

Yup, we should be careful and see if we can get rid of existing uses.

Thanks.
Previous: Glen ChooNext: Michael S. Tsirkin
Message 5 of 8 in “sudmodule.<name>.recurse ignored”
  1. Michael S. TsirkinOct 7, 2022
  2. Ævar Arnfjörð BjarmasonOct 7, 2022
  3. Michael S. TsirkinOct 7, 2022
  4. Glen ChooOct 7, 2022
  5. Junio C HamanoOct 7, 2022
  6. Michael S. TsirkinOct 11, 2022
  7. Glen ChooOct 12, 2022
  8. Michael S. TsirkinOct 12, 2022

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.