Re: organizing multiple repositories with dependencies

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

 



Namit Bhalla <namitbhalla@xxxxxxxxx> writes:

> I am looking to track some projects using Git with each project as a 
> separate repository.
> Even after reading the documentation, I am still wondering if there is a 
> way to organize things as described below.
> 
> Consider 2 projects, Project-a and Project-b, which are housed in 
> repositories Repo-a and Repo-b respectively. 
> Project-a develops reusable libraries which are needed by Project-b 
> (otherwise Project-b will not compile).
> When a new stable version of Project-a libraries has to be delivered, they 
> are "checked into" a path in Repo-a.
> Now, I would like to setup Repo-b so that when someone starts working on 
> Project-b, he should be able to retrieve the code from Repo-b as well as the libraries from Repo-a. Is there any way to achieve that in 
> Git?

Put reusable library in its own repository, and use submodules to link
it up to project-a and project-b repositories.

HTH
-- 
Jakub Narebski

--
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]