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

Re: using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config)

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Aug 16, 2007, 16:39 UTC
Message-ID
<200708161839.52749.Josef.Weidendorfer@gmx.de>
In-Reply-To
<20070816142133.GA26013@piper.oerlikon.madduck.net>
On Thursday 16 August 2007, martin f krafft wrote:
Show 7 quoted lines
> also sprach Josef Weidendorfer <Josef.Weidendorfer@gmx.de> [2007.08.16.1553 +0200]:
> > The information in .gitmodules is only a default value for the
> > URL, and not to be actually used. The URL in the config has to
> > exist and will be used for updating. So the config value is not
> > about overriding anything, but is required information.
> 
> It's not required for git-submodule status.
This can show uninitialized submodules, so that's fine.

As the URL in .gitmodules is only an initial default, it probably could be optional: if you work on a supermodule with a submodule of your own, it is easily possible that you have no idea about what a reasonable default of a submodule URL should be at the time you do the first supermodule commit. It makes no sense to have to provide a bogus URL there.

Josef
Previous: martin f krafftNext: Lars Hjemli
Message 6 of 7 in “git submodule init and redundant data in .gitmodules/.git/config”
  1. martin f krafftAug 15, 2007
  2. Sven VerdoolaegeAug 15, 2007
  3. using .gitmodule as default (was: git submodule init and redundant data in .gitmodules/.git/config)martin f krafft, Aug 15, 2007
  4. Josef WeidendorferAug 16, 2007
  5. martin f krafftAug 16, 2007
  6. Josef WeidendorferAug 16, 2007
  7. Lars HjemliAug 17, 2007

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.