|multiple git repositories in a single Eclipse project? [message #1736170]
||Mon, 27 June 2016 09:14
| Horacio Anton Quiles
Registered: June 2016
I have an Eclipse (CDT) project which contains multiple git repositories. The project's root directory is a git repository itself; various subdirectories also contain their own repositories.
Eclipse easily connects to the root git repository, but I have been unable to find a way to make Eclipse realize that the subdirectories correspond to different repositories.
Is there a way to do it?
If not, why? Is it just not implemented? Or maybe it can't be done because of an EGit limitation, or a limitation in the Eclipse Team Provider infrastructure? (I'm assuming that this kind of thing should be transparent to JGit, just as it is to the native git). Should I open a bug report/feature request? (if so, where? in EGit's tracker?)
And, can anyone propose an alternative? For example, I have tried keeping each repository in its own project, and use the project's properties to exclude the subdirectories in the root project while making it depend from the "subprojects" - but it's messy, and still, the whole project gets built by a single makefile, so the non-root projects have their indexing messed up because of their lack of access to the build console output.
I have seen mentions of using git submodules to make this kind of repository nesting explicit at the git level. But submodules seem to have their own problems, which is the reason why I am not using them already outside of Eclipse; so I would prefer avoiding them.
Any hint will be welcome. Thanks!
Powered by FUDForum
. Page generated in 0.03787 seconds