Web lists-archives.org

Re: Why do git submodules require manual checkouts and commits?




Hi,

On Thu, 15 May 2008, skillzero@xxxxxxxxx wrote:

> Why do git submodules require manually committing the submodule itself
> to each super repository after something in the submodule repository
> changes?

Submodules are special.

You cannot recreate the exact state from a commit in the superproject, for 
one, and often not even from the commit itself, since the submodule can 
contain more than just the tracked files.

Also, no submodule _has_ to be checked out.  If you are working inside a 
superproject, chances are that you are uninterested in most of the 
submodules.

So no, there is nothing to change here, please move along.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html