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
LHLars Hjemli <hjemli@gmail.com>
Date
Aug 17, 2007, 07:14 UTC
Message-ID
<8c5c35580708170014i5af2da62w1dbcbad71430e26@mail.gmail.com>
In-Reply-To
<20070815222907.GA7395@piper.oerlikon.madduck.net>
On 8/16/07, martin f krafft <madduck@madduck.net> wrote:
> I have one open question though: why require init?

The purpose of 'init' is to inform git-submodule about which submodules you want to checkout. E.g. for a project with submodules in directories 'a', 'b' and 'c', you could do

$ git submodule init b c $ git submodule update

This would only fetch/checkout the submodules in direcotories 'b' and 'c', while 'git submodule status' would still inform you that there is actually three submodules available.

Note: If you wanted to initialize all three submodules at once, you
could simply do
$ git submodule init

-- larsh

Previous: Josef Weidendorfer
Message 7 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.