Re: Git Submodule or Git Subtree?

Ivan Sergio Borgonovo <[email protected]>
Newsgroups gmane.org.user-groups.linux.svlug
Organization http://www.WebThatWorks.it
Message-ID <[email protected]>
On 06/17/2016 04:36 PM, Michael Eager wrote:
> Hi --
>
> I'm trying to set up a repository using git submodule or git subtree.
>
> Does anyone have experience using either of these?

I've tried both.
My use case was including in my project some libraries at a specific 
commit and being able to contribute to libraries upstream.

That was happening at least more than 1 year ago when I was 
experimenting with nodejs.

I decided submodules was the best option among the 2.

Then I gave up for 2 main reasons:
a) my need was mostly caused by the immaturity of nodejs and by the way 
nodejs developers dealt with dependencies
b) submodules wasn't making things easy enough

Maybe if you're trying to solve simpler self inflicted problems 
submodules could pay the bill.

At that time submodules were under active development and maybe now they 
could be easier to use.
I felt something to navigate through the parent project and extract info 
was missing to make things easier.

Still the problem doesn't have an easy solution and a better tool can 
just alleviate the pain.
My impression was that scripting glue to automate some stuff and a way 
to document what you're doing play a bigger part in keeping things under 
control.

repo (https://code.google.com/p/git-repo/) could be a different approach 
to the problem

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.