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

Re: [GSoC 11 submodule] Status update

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Jun 28, 2011, 18:43 UTC
Message-ID
<20110628184358.GA3700@book.hvoigt.net>
In-Reply-To
<4E09205E.2080904@cisco.com>
Hi,
On Mon, Jun 27, 2011 at 08:29:18PM -0400, Phil Hord wrote:
Show 7 quoted lines
> On 06/27/2011 03:34 PM, Fredrik Gustafsson wrote:
> > My fourth task (and the main task of this summer) will start on June 27 and
> > will be to move a submodules .git-dir into the super-projects .git-dir.
> > Design of this is already done and approved by my mentors.
> 
> This frightens me a bit, so I read the wiki link about it.  Thanks for
> explaining where I can find this information.
I do not know what part of this change frightens you?
Show 11 quoted lines
> But I'm still confused.
> 
> If I understand right, the submodule/.git dirs will be moved into the
> top-level at .git/submodule/.git.  The benefit is supposed to be that
> this will free up contention on the non-empty submodule directory when
> the super-project switches branches.
> 
> In the simple case, git warns "unable to rmdir sub: Directory not
> empty".  But I can think of other conflicts as well.
> 
> My question is, how does this proposed change help the situation?

The proposed change allows us to implement that a submodules directory can be completely removed if it was deleted or moved. If we would do that currently you would loose all local history of the submodule. I do not know what you mean with "conflicts" but this change will help submodule towards behaving like they were ordinary directories in git.

Cheers Heiko
Previous: Phil HordNext: Phil Hord
Message 3 of 6 in “[GSoC 11 submodule] Status update”
  1. Fredrik GustafssonJun 27, 2011
  2. Phil HordJun 28, 2011
  3. Heiko VoigtJun 28, 2011
  4. Phil HordJun 29, 2011
  5. Junio C HamanoJun 29, 2011
  6. Phil HordJun 30, 2011

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.