Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Submodules?
Submodules? [message #578819] Tue, 06 April 2010 11:43 Go to next message
Miles Sabin is currently offline Miles SabinFriend
Messages: 3
Registered: July 2009
Junior Member
What's the current status of support for submodules in jgit/egit? If they're not yet supported is there any (even very hand-wavy) estimate for when support might land?

Alternatively, if there's no support currently, what are peoples recommendations for structuring a collection of sources which includes multiple Eclipse projects but where a subset of these are "external" (ie. there's a set of projects which would logically fit into a single git repository, but a couple of additional ones which would ideally grouped together with the first set via a superproject). However it's done I'd like to be able to support atomic commits across all the projects.

Any pointers would be very welcome.
Re: Submodules? [message #579435 is a reply to message #578819] Tue, 13 April 2010 23:01 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 612
Registered: July 2009
Senior Member
See the Shawn's reply on egit-dev: http://dev.eclipse.org/mhonarc/lists/egit-dev/msg01047.html
Re: Submodules? [message #581506 is a reply to message #578819] Tue, 15 June 2010 07:55 Go to previous messageGo to next message
Lester Caine is currently offline Lester CaineFriend
Messages: 65
Registered: July 2009
Member
No comments on this other than some vague request to explain?

I have been running eclipse/phpeclipse for many years and have been more than happy, but one of my projects as 'bitten the bullet' and decided 'git' is the way forward from CVS. The source CVS project has 157 CVS modules which are combined to build a project. Only modules that are complete and functional are included in production builds. So from CVS you can download a group of modules such as 'core'. GIT was a real pain to port this very basic structure into, but it has now been done, with some command line scripts to handle each module, and the result is 157 git repos, with superprojects to replace the CVS packages ...

Come on egit to download .... I only sees the basic 'master' branch, and fails even to download from that.

So does this question need bouncing over to jgit?
Re: Submodules? [message #581545 is a reply to message #581506] Tue, 15 June 2010 23:23 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Lester Caine wrote:

> No comments on this other than some vague request to explain?

(Must be an old tread, not in the news server anymore)

>
> I have been running eclipse/phpeclipse for many years and have been more
> than happy, but one of my projects as 'bitten the bullet' and decided
> 'git' is the way forward from CVS. The source CVS project has 157 CVS
> modules which are combined to build a project. Only modules that are
> complete and functional are included in production builds. So from CVS you
> can download a group of modules such as 'core'. GIT was a real pain to
> port this very basic structure into, but it has now been done, with some
> command line scripts to handle each module, and the result is 157 git
> repos, with superprojects to replace the CVS packages ...

Deciding how to divide your project into different repositories is a hard
decision. Whichever way you divide will probably have a smaller impact
than you may think, though 157 repo seems about 30 time too many (without
actually looking). I have to idea about your product structure, so I cannot
say it doesn't make sense. Some of the methods I see sometimes is having
completely separate repos development. The Git way is branches that gets
to the main branch using merge, cherry-pick or whatever make best sense.
In Git you can have branches in separate repos is size of the alpha repos
is a worry.

As for submodule support in JGit, I have no idea when that will appear. I
imagine someday. I've never used them myself, and I'm not sure I ever will,
partially because I don't think they solve the problem of linking
repositories well. The links are too strong and only work with other Git
repos.

What I would use is something more like the Android's repo tool, the team
project set, custome shell scripts or some other CM tool that can bring
together a lot of sources, whether they reside in git, cvs or some other
scm. Currently I to this manually and howegrown CM scripts for build
automation.

> Come on egit to download .... I only sees the basic 'master' branch, and
> fails even to download from that.

"fails" is not much of a description of the problem. Can't help with that,
but it relates to submodule, then that is the problem. We should probably
detect that and tell the user about the problem in a nice way. I'm not
sure we do.

> So does this question need bouncing over to jgit?

Yes, JGit needs submodule for EGit to support them. It's the same forum
though.

-- robin
Previous Topic:Recommended size of repositories and management of private repositories
Next Topic:Change log
Goto Forum:
  


Current Time: Sun Dec 21 04:20:41 GMT 2014

Powered by FUDForum. Page generated in 0.01696 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software