threads / discuss / 14353

git submodules or, how do we share code between unrelated projects?

Subject: git submodules or, how do we share code between unrelated projects?

## tl;dr

One message between Jul 8, 2008 and Jul 8, 2008.

replies: 0people: 1as markdown or json

Jan Wielemaker· Jul 8, 2008, 21:11 UTC · lore
Hi,

I'm looking at git-submodule, but I start to get the impression it is old CVS jargon that brought me there.

We are two open source projects creating implementations of the Prolog language. One (SWI-Prolog) is under GIT, the other (YAP) is under CVS but will move to git if this helps.

We want to start sharing some developments. I guess for each (unrelated) library we wish to share we must create a git repo, right? Now we generally need compatibility patches to make this shared code run on both systems and we need some way to get this code into the main repo of both systems, such that a clone of the repo of a system gets you the shared library.

I guess GIT must be perfect for this, but I'm a bit unsure on the proper setup of the workflow. Is there a project that has something similar established and has guidelines how to manage this?

	Cheers --- Jan

← back to recent threads