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

Re: Submodules implementation

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 24, 2010, 00:40 UTC
Message-ID
<7vvddnwjmu.fsf@alter.siamese.dyndns.org>
In-Reply-To
<201002240115.53771.bartoschek@gmx.de>
Christoph Bartoschek <bartoschek@gmx.de> writes:
> I see that in the submodule there is a .git directory with its own objects.  
> This does not look like as if the submodule objects are part of the 
> superproject.

Because they largely aren't. submodules are freestanding projects on their own right.

One of the primary design decisions was to support the use of a superproject without having to clone/checkout all the submodules.

You may want to check earlier design discussion thread:
  http://thread.gmane.org/gmane.comp.version-control.git/31941/focus=32944

It is a huge thread and some of the messages there might be nothing more than uninformed and unworkable handwaving, except for the ones from Linus and some others.

Previous: Christoph Bartoschek
Message 4 of 4 in “Submodules implementation”
  1. Christoph BartoschekFeb 23, 2010
  2. Avery PennarunFeb 23, 2010
  3. Christoph BartoschekFeb 24, 2010
  4. Junio C HamanoFeb 24, 2010

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.