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

Re: [RFD/PATCH] submodule doc: describe where we can configure them

From
Junio C Hamano <gitster@pobox.com>
Date
May 9, 2016, 16:19 UTC
Message-ID
<xmqqlh3jxkyn.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20160508220127.GB59077@book.hvoigt.net>
Heiko Voigt <hvoigt@hvoigt.net> writes:
Show 13 quoted lines
>> > - When upstream adds a new submodule, I have to do the same manual
>> >   work to change the options for that new submodule.
>> 
>> Because a new module is not automatically "init"ed by default?
>> 
>> Isn't "config only" vs "config with gitmodules fallback" orthogonal
>> to that issue?
>
> What do you mean with "orthogonal to that issue"? AFAICS a gitmodule
> fallback does not have that issue.
>
> Actually I would see it more like:
> .gitmodule is the default and .git/config a possibility to override.
The way I read Jonathan's "I have to do the same manual..." above is:
  Back when I cloned, the upstream had one submodule A.  I didn't like
  some aspect of the configuration for that submodule so I did a
  customization in [submodule "A"] section of .git/config for it.
  Now the upstream added another submodule B.  I want a tweak similar
  to what I did to A applied to this one, but that would mean I need
  to edit the entry in .git/config copied by "init" from .gitmodules.

I do not see how difference between ".git/config is the only source of truth" or ".git/config overrides what is in .gitmodules" would matter to the above scenario.

Previous: Heiko VoigtNext: Heiko Voigt
Message 11 of 13 in “submodule doc: describe where we can configure them”
  1. submodule doc: describe where we can configure themStefan Beller, May 3, 2016
  2. Jonathan NiederMay 3, 2016
  3. Stefan BellerMay 4, 2016
  4. Heiko VoigtMay 4, 2016
  5. Stefan BellerMay 4, 2016
  6. Heiko VoigtMay 8, 2016
  7. Stefan BellerMay 9, 2016
  8. Heiko VoigtMay 11, 2016
  9. Junio C HamanoMay 4, 2016
  10. Heiko VoigtMay 8, 2016
  11. Junio C HamanoMay 9, 2016
  12. Heiko VoigtMay 11, 2016
  13. Junio C HamanoMay 4, 2016

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.