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

Re: [RFC] Light-weight checkouts via ".gitlink"

From
JWJosef Weidendorfer <josef.weidendorfer@gmx.de>
Date
Dec 9, 2006, 01:46 UTC
Message-ID
<200612090246.20770.Josef.Weidendorfer@gmx.de>
In-Reply-To
<200612090053.48186.jnareb@gmail.com>
On Saturday 09 December 2006 00:53, Jakub Narebski wrote:
Show 17 quoted lines
> Josef Weidendorfer wrote:
> > On Friday 08 December 2006 23:54, Josef Weidendorfer wrote:
> >> Jakub Narebski wrote:
> >>> NAME = name
> > 
> > Forgot to mention in the proposal:
> > If you recursively have light-weight checkouts inside each other,
> > the real "name" (for .git/external/<name/ and for further submodule
> > configuration e.g. in .git/modules of the base repository)
> > should of course be the concatenation of the names in the .gitlink
> > files while going up to the base repository.
> 
> Why concatenation? I thought the name would be ID of submodule,
> and should be just somehow unique.
> 
> And if concatenation, pehaps some forbidden character inserted between
> them? Like '/' for example ;-)

Yes, you are right. Nesting of submodules really is an important issue. The .gitlink file allows us to put the submodule GITDIR somewhere in the supermodul's GITDIR. The idea is that you can clone the submodule GITDIR if you want. With submodule "inner" nesting inside of submodule "outer", the GITDIR of "outer" should have the GITDIR of inner inside to allow for cloning "outer" together with its submodule "inner".

So it is not enough to have a submodule "outer" and a submodule "outer/inner" in the supermodule. We want

	super.git/ext/outer.git/
to be the GITDIR for submodule "outer", and inside 
	super.git/ext/outer.git/ext/inner.git
.

Actually, it would be nice if this .gitlink proposal did not have to deal with it. Instead, a .gitlink should be so flexible to allow such nesting if needed.

Previous: Jakub Narebski
Message 8 of 8 in “[RFC] Light-weight checkouts via ".gitlink"”
  1. Josef WeidendorferDec 8, 2006
  2. Jakub NarebskiDec 8, 2006
  3. Josef WeidendorferDec 8, 2006
  4. Jakub NarebskiDec 8, 2006
  5. Josef WeidendorferDec 8, 2006
  6. Josef WeidendorferDec 8, 2006
  7. Jakub NarebskiDec 8, 2006
  8. Josef WeidendorferDec 9, 2006

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.