Re: Best way to re-do a CVS repository with git?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 19, 2008 at 1:23 AM, Jakub Narebski <jnareb@xxxxxxxxx> wrote:
> I think that such setup would be best managed by creating Git
> repository for each piece, and "integration" repositories, one for
> apps people, and one for firmware people, using submodule support in
> Git.

> Tagging entire release would be tagging in "integration" repository,
> the one using submodules.

Thanks for the info. git submodules seem like the right direction. But
unless I'm misreading the tutorial, using submodules would require
each user to know about and maintain every super module that might use
each submodule. For example, if you had:

moduleA
	fileA.txt
moduleB
	fileB.txt
moduleC
	fileC.txt

super1
	moduleA
	moduleC

super2
	moduleB
	moduleC

super3
	moduleA
	moduleC

I commit a change in fileA.txt (in moduleA). I now have to commit
moduleA to super1 and then commit moduleA to super3. Otherwise, super1
and super3 would still refer to the previous commit of moduleA. That's
a good amount of extra work (I can imagine there may being dozens of
super projects referring to a certain submodule).

But there's a more serious problem in my case because not all users
have access to all repositories. For example, if I have access to
super1, but not super3 (I may not even know super3 exists), I won't be
able to update super3. Now super3 is in a weird state: it has moduleA
as a submodule, but it refers to an older revision of moduleA.
Somebody with access to super3 has to know that moduleA has changes
that haven't been included in super3 and manually pull them.

Or am I just misunderstand how submodules work? It seems to me that
the super module could use a more abstract link: the super repository
would refer to a branch name (e.g. master). Then when I do a git pull
from super1, it would see it contains moduleA on branch "master" and
would pull down the latest "master" branch from moduleA without ever
having to commit moduleA to super1 or super3.

This is probably harder than it sounds, but it would seem to eliminate
the need to know anything about super modules (except initially when
the super repository is created). I just commit to moduleA and the
next time somebody pulls from super1 or super3, they get the change
automatically.
--
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux