* [egit] Git repository with multiple eclipse projects ?
@ 2009-11-25 16:47 Yann Dirson
2009-11-25 19:53 ` Yann Simon
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Yann Dirson @ 2009-11-25 16:47 UTC (permalink / raw)
To: git
I am investigating whether it is possible at all to have several
eclipse projects in a single git repo, and have those projects
correctly seen as managed by git.
When importing a git repo into eclipse, we get a list of projects to
import, but that list is empty. What is expected by egit to get this
list filled ?
It also does not look like it would be possible to use the "share"
functionnality to setup such a repository from multiple projects (or
from a project set), right ?
Best regards,
--
Yann
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-25 16:47 [egit] Git repository with multiple eclipse projects ? Yann Dirson
@ 2009-11-25 19:53 ` Yann Simon
2009-11-25 21:27 ` Robin Rosenberg
2009-11-26 0:48 ` Shawn O. Pearce
2 siblings, 0 replies; 8+ messages in thread
From: Yann Simon @ 2009-11-25 19:53 UTC (permalink / raw)
To: Yann Dirson; +Cc: git
Le mercredi 25 novembre 2009 à 17:47 +0100, Yann Dirson a écrit :
> It also does not look like it would be possible to use the "share"
> functionnality to setup such a repository from multiple projects (or
> from a project set), right ?
The last time I worked with egit, it was not yet implemented.
Yann
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-25 16:47 [egit] Git repository with multiple eclipse projects ? Yann Dirson
2009-11-25 19:53 ` Yann Simon
@ 2009-11-25 21:27 ` Robin Rosenberg
2009-12-02 14:24 ` Yann Dirson
2009-11-26 0:48 ` Shawn O. Pearce
2 siblings, 1 reply; 8+ messages in thread
From: Robin Rosenberg @ 2009-11-25 21:27 UTC (permalink / raw)
To: Yann Dirson; +Cc: git, egit-dev
onsdag 25 november 2009 17:47:34 skrev Yann Dirson:
> I am investigating whether it is possible at all to have several
> eclipse projects in a single git repo, and have those projects
> correctly seen as managed by git.
>
> When importing a git repo into eclipse, we get a list of projects to
> import, but that list is empty. What is expected by egit to get this
> list filled ?
Both Egit and Jgit themselves have multiple projects in the same repo.
All projects must be located in the same directory structure.
repo/.git
|`--project1/.git
|`--project2
etc
Other variations are possible.
>
> It also does not look like it would be possible to use the "share"
> functionnality to setup such a repository from multiple projects (or
> from a project set), right ?
Share only tells Eclipse to attach EGit as the team provider, provided
it is located in a git repo, or lets you create a repo if none exists.
-- robin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-25 16:47 [egit] Git repository with multiple eclipse projects ? Yann Dirson
2009-11-25 19:53 ` Yann Simon
2009-11-25 21:27 ` Robin Rosenberg
@ 2009-11-26 0:48 ` Shawn O. Pearce
2009-11-26 1:12 ` Douglas Campos
` (2 more replies)
2 siblings, 3 replies; 8+ messages in thread
From: Shawn O. Pearce @ 2009-11-26 0:48 UTC (permalink / raw)
To: Yann Dirson; +Cc: git
Yann Dirson <ydirson@linagora.com> wrote:
> I am investigating whether it is possible at all to have several
> eclipse projects in a single git repo, and have those projects
> correctly seen as managed by git.
As Robin said, it should work. EGit and JGit both use this layout.
> When importing a git repo into eclipse, we get a list of projects to
> import, but that list is empty. What is expected by egit to get this
> list filled ?
There should be .project files in the repository. I think we scan
the entire checkout tree for .project files, but maybe we are doing
something stupid and only looking at the top level directory of
the checkout.
> It also does not look like it would be possible to use the "share"
> functionnality to setup such a repository from multiple projects (or
> from a project set), right ?
Nope, I don't think this is supported right now. You need to
initialize the git repository by hand in the higher level directory
that holds the projects.
--
Shawn.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-26 0:48 ` Shawn O. Pearce
@ 2009-11-26 1:12 ` Douglas Campos
2009-11-26 8:39 ` Yann Simon
2009-11-26 14:30 ` Yann Dirson
2 siblings, 0 replies; 8+ messages in thread
From: Douglas Campos @ 2009-11-26 1:12 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Yann Dirson, git
(worksforme) egit 0.5.x
On Wed, Nov 25, 2009 at 10:48 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> Yann Dirson <ydirson@linagora.com> wrote:
>> I am investigating whether it is possible at all to have several
>> eclipse projects in a single git repo, and have those projects
>> correctly seen as managed by git.
>
> As Robin said, it should work. EGit and JGit both use this layout.
>
>> When importing a git repo into eclipse, we get a list of projects to
>> import, but that list is empty. What is expected by egit to get this
>> list filled ?
>
> There should be .project files in the repository. I think we scan
> the entire checkout tree for .project files, but maybe we are doing
> something stupid and only looking at the top level directory of
> the checkout.
>
>> It also does not look like it would be possible to use the "share"
>> functionnality to setup such a repository from multiple projects (or
>> from a project set), right ?
>
> Nope, I don't think this is supported right now. You need to
> initialize the git repository by hand in the higher level directory
> that holds the projects.
>
> --
> Shawn.
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Douglas Campos (qmx)
+55 11 7626 5959
+55 11 6762 5959
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-26 0:48 ` Shawn O. Pearce
2009-11-26 1:12 ` Douglas Campos
@ 2009-11-26 8:39 ` Yann Simon
2009-11-26 14:30 ` Yann Dirson
2 siblings, 0 replies; 8+ messages in thread
From: Yann Simon @ 2009-11-26 8:39 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: Yann Dirson, git
2009/11/26 Shawn O. Pearce <spearce@spearce.org>:
> Yann Dirson <ydirson@linagora.com> wrote:
>> It also does not look like it would be possible to use the "share"
>> functionnality to setup such a repository from multiple projects (or
>> from a project set), right ?
>
> Nope, I don't think this is supported right now. You need to
> initialize the git repository by hand in the higher level directory
> that holds the projects.
That was the question I initialy understood.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-26 0:48 ` Shawn O. Pearce
2009-11-26 1:12 ` Douglas Campos
2009-11-26 8:39 ` Yann Simon
@ 2009-11-26 14:30 ` Yann Dirson
2 siblings, 0 replies; 8+ messages in thread
From: Yann Dirson @ 2009-11-26 14:30 UTC (permalink / raw)
To: Shawn O. Pearce; +Cc: git
On Wed, Nov 25, 2009 at 04:48:17PM -0800, Shawn O. Pearce wrote:
> > When importing a git repo into eclipse, we get a list of projects to
> > import, but that list is empty. What is expected by egit to get this
> > list filled ?
>
> There should be .project files in the repository. I think we scan
> the entire checkout tree for .project files, but maybe we are doing
> something stupid and only looking at the top level directory of
> the checkout.
Right, we could make it work - the devs just did not have the habbit
of commiting .project files.
> > It also does not look like it would be possible to use the "share"
> > functionnality to setup such a repository from multiple projects (or
> > from a project set), right ?
>
> Nope, I don't think this is supported right now. You need to
> initialize the git repository by hand in the higher level directory
> that holds the projects.
Yes, we did that by git-add'ing the initial projects manually and
pushing them, and we can now "import" that.
That makes me wonder if it should work to add a new project afterwards
from within Eclipse. If we create a new project under the git tree,
and try to use "share", then we get presented a folded list containing
the project we want to add, which when unfolded reveals "..\.git"
(yes, this test done on windows) as repository, which is promising.
But then the field below near the "Create" button (the one with
"\.git" text on the right) gets polulated with the full project path
when we click on the project in the list, and we could not unlock the
"next" or "finish" button. Are we just trying things the way they
should work but hit functionnality that is just not finished, or are
we completely off-track ?
Thanks much,
--
Yann
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [egit] Git repository with multiple eclipse projects ?
2009-11-25 21:27 ` Robin Rosenberg
@ 2009-12-02 14:24 ` Yann Dirson
0 siblings, 0 replies; 8+ messages in thread
From: Yann Dirson @ 2009-12-02 14:24 UTC (permalink / raw)
To: Robin Rosenberg; +Cc: git, egit-dev
On Wed, Nov 25, 2009 at 10:27:39PM +0100, Robin Rosenberg wrote:
> onsdag 25 november 2009 17:47:34 skrev Yann Dirson:
> > I am investigating whether it is possible at all to have several
> > eclipse projects in a single git repo, and have those projects
> > correctly seen as managed by git.
> >
> > When importing a git repo into eclipse, we get a list of projects to
> > import, but that list is empty. What is expected by egit to get this
> > list filled ?
>
> Both Egit and Jgit themselves have multiple projects in the same repo.
> All projects must be located in the same directory structure.
>
> repo/.git
> |`--project1/.git
> |`--project2
>
> etc
> Other variations are possible.
You seem to talk about nested git repo here. Do you mean using
submodules (I thought jgit did not support them yet) ? git-subtree ?
> >
> > It also does not look like it would be possible to use the "share"
> > functionnality to setup such a repository from multiple projects (or
> > from a project set), right ?
>
> Share only tells Eclipse to attach EGit as the team provider, provided
> it is located in a git repo, or lets you create a repo if none exists.
Looks like there is a possibly-windows-specific issue here.
The test repo is a git repo with a couple of eclipse projects just
beneath the top-level. It can be checked-out from both Ubuntu
(Karmic) and Windows (Vista), and in both cases the projects can be
attached to the team provider from the "import" wizard.
On an Ubuntu box, I could use "team/disconnect", and then "share" to
attach to "../.git", it worked like a charm. On the windows box
however, reconnecting was not possible: the "../.git" line is not
selectable. Note that it does read "../.git" and not "..\.git".
Note that on my "mostly squeeze" Debian box, the import would succeed,
but in that case none of the projects were attached to the team
provider. If afterwards I try to connect it, it silently does nothing.
In that case it may be a known bug: I have a ~/.git dir that is also
seen by jgit, and which I am also proposed in the "share" dialog. If
I move it away, the request to attach is successful.
Best regards,
--
Yann
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-12-02 14:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-25 16:47 [egit] Git repository with multiple eclipse projects ? Yann Dirson
2009-11-25 19:53 ` Yann Simon
2009-11-25 21:27 ` Robin Rosenberg
2009-12-02 14:24 ` Yann Dirson
2009-11-26 0:48 ` Shawn O. Pearce
2009-11-26 1:12 ` Douglas Campos
2009-11-26 8:39 ` Yann Simon
2009-11-26 14:30 ` Yann Dirson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox