Re: [RFC] Submodules in GIT
From: Sven Verdoolaege <hidden>
Date: 2016-08-11 19:44:43
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.
[..]
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 ?