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

Re: [RFC GSoC 2009: git-submodule for multiple, active developers on active trees]

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Apr 1, 2009, 16:13 UTC
Message-ID
<alpine.DEB.1.00.0904011811460.13502@intel-tinevez-2-302>
In-Reply-To
<49D30907.6090606@op5.se>
Hi,
On Wed, 1 Apr 2009, Andreas Ericsson wrote:
Show 28 quoted lines
> Johannes Schindelin wrote:
> 
> > On Tue, 31 Mar 2009, P Baker wrote:
> > 
> > > I'll paraphrase to see if I understand your points:
> > >
> > > *Moving objects from submodule .git directories into the base .git/
> > > directory would protect the submodules and is a good idea.
> > 
> > No, I did not say that.
> > 
> > I said that moving submodules' working directory need to protected when
> > renaming/deleting submodules.
> > 
> > Even worse, I think that moving the .git/ directory into the superproject's
> > .git/ would be at least quite a bit awkward in the nested case.
> > 
> 
> Not necessarily. The .git directory of a submodule need not be named .git
> inside the superprojects .git directory. I could well imagine something
> like this:
> 
> .git/modules/submod(.git)/modules/nested-submod(.git)
> 
> For deeply nested submodules (eurgh), one might run into path length limit
> issues though. The point is that we will need some library-like function
> to find the repository of the submodule. Once that's done, the same call
> with a different $gitdir should be able to find the nested submodule.
It appears to me as a solution in need of a problem.
Show 5 quoted lines
> I'm also thinking of libgit2 here, where each repository will be 
> represented as a struct that must be passed to the various $gitdir 
> searching functions. This is necessary to allow a single program to 
> access multiple repositories, and the .git/modules scheme makes 
> supporting submodules in the library quite trivial.
First: libgit2 is not an issue for this thread AFAIAC.
Second: accessing submodules' repositories is quite trivial at the moment.  
So much so that git-submodule can still get away with being a shell 
script.

Ciao, Dscho

Previous: Andreas Ericsson
Message 12 of 12 in “[RFC GSoC 2009: git-submodule for multiple, active developers on active trees]”
  1. P BakerMar 25, 2009
  2. Shawn O. PearceMar 30, 2009
  3. P BakerMar 31, 2009
  4. Johannes SchindelinMar 31, 2009
  5. P BakerMar 31, 2009
  6. Johannes SchindelinMar 31, 2009
  7. P BakerMar 31, 2009
  8. Johannes SchindelinApr 1, 2009
  9. P BakerApr 1, 2009
  10. Johannes SchindelinApr 1, 2009
  11. Andreas EricssonApr 1, 2009
  12. Johannes SchindelinApr 1, 2009

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.