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

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

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 8, 2006, 23:53 UTC
Message-ID
<200612090053.48186.jnareb@gmail.com>
In-Reply-To
<200612090025.24234.Josef.Weidendorfer@gmx.de>
Josef Weidendorfer wrote:
Show 10 quoted lines
> 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 ;-)
 
Show 11 quoted lines
>>> Perhaps instead of adding arbitrary number of .. in front of
>>> relative path, we better use some magic, like ... for finding
>>> somewhere up? 
> 
> No need. Something like
> 
>> 	/home/user/.../linux
> 
> is crazy. Do you want to scan all of your home directory everytime
> this  lookup is needed? So "..." really only makes sense in front of
> the relative path, but there, you also can leave it out.
No. I meant /home/user/.../linux to mean searching for
  /home/user/linux
  /home/linux
  /linux
but I don't think it is useful. As to relative path matching in any
parent directory... well, that differs only in direction (up instead of 
down) in matching filename in .gitignore when path does not contain /
(well, actually it is taken as fileglob).
-- 
Jakub Narebski
Previous: Josef WeidendorferNext: Josef Weidendorfer
Message 7 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.