Re: [RFC] Submodules in GIT
- From
- Sven Verdoolaege <skimo@kotnet.org>
- Date
- Nov 30, 2006, 15:20 UTC
- Message-ID
- <20061130152011.GM12463MdfPADPa@greensroom.kotnet.org>
- In-Reply-To
- <200611301449.55171.andyparkins@gmail.com>
On Thu, Nov 30, 2006 at 02:49:53PM +0000, Andy Parkins wrote:
> How are these commits any different from just having one big repository? If
You can work on the submodule independently.
> some of the development of the submodule is contained in the supermodule then > it's not a submodule anymore.
On the contrary, that's exactly what a submodule is supposed to be.
> Why bother with all the effort to make a separation between submodule and > supermodule and then store the submodule commits in the supermodule. That's > not supermodule/submodule git - that's just normal git.
[..]
Show 5 quoted lines
> myproject (git root) > |----- src > |----- doc > `----- libxcb (git root) >
[..]
> > Submodules will solve this problem. In the future I'll be able to check out > any commit of myproject and it will automatically checkout the right commit > from the libxcb repository.
How are you going to checkout the right commit of the lixcb repo if you didn't store it in the supermodule ?