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

Re: [PATCH 2/2] Teach "git-read-tree -u" to check out submodules as a directory

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 13, 2007, 04:15 UTC
Message-ID
<Pine.LNX.4.64.0704122109070.4061@woody.linux-foundation.org>
In-Reply-To
<Pine.LNX.4.64.0704122104030.4061@woody.linux-foundation.org>
On Thu, 12 Apr 2007, Linus Torvalds wrote:
Show 9 quoted lines
> 
> [ Side note: this also shows that we currently don't correctly handle
>   such subprojects that aren't checked out correctly yet.  They should
>   always show up as not being modified, but failing to resolve the
>   gitlink HEAD does not properly trigger the "not modified" logic in all 
>   places it needs to..
> 
>   So more work to be done, but that's a separate issue, unrelated to
>   the action of checking out the superproject. ]

Apart from this issue, and the fact that we don't actually diff subprojects at all right now (even to the point of saying "subproject XyZ has changed from commit X to commit Y" - the raw format knows to say that, but the patch format does not), I think the "really core plumbing" is actually mostly done with this series.

So there's certainly some loose ends to tie up and some missing functionality even at the core level, but I suspect this is getting to the point where a big chunk of the remaining part is actually to teach the upper layers (like "fetch", "checkout", "merge" etc) to actually iterate over subprojects using the theoretical higher-level ".subprojects" file, and do the plumbing-level operations on those.

Of course, actually trying to start to *use* these things is bound to find tons and tons of issues, but I still feel like a lot of the core is at least "fleshed out", if not necessarily actually usable yet.

I may take a few days off on this, and hope others will step in and fix up some of the remaining problems ..

			Linus
Previous: Linus TorvaldsNext: Junio C Hamano
Message 3 of 5 in “Teach git list-objects logic not to follow gitlinks”
  1. 1/2 Teach git list-objects logic not to follow gitlinksLinus Torvalds, Apr 13, 2007
  2. 2/2 Teach "git-read-tree -u" to check out submodules as a directoryLinus Torvalds, Apr 13, 2007
  3. Linus TorvaldsApr 13, 2007
  4. Junio C HamanoApr 13, 2007
  5. Linus TorvaldsApr 13, 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.