{"thread":{"id":"21751","subject":"[egit] Git repository with multiple eclipse projects ?","startedAt":"2009-11-25T16:47:34Z","lastAt":"2009-12-02T14:24:13Z","messageCount":8,"participants":["Yann Dirson","Yann Simon","Robin Rosenberg","Shawn O. Pearce","Douglas Campos"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"128321","messageId":"20091125164734.GF21347@linagora.com","threadId":"21751","inReplyTo":null,"subject":"[egit] Git repository with multiple eclipse projects ?","fromName":"Yann Dirson","fromEmail":"ydirson@linagora.com","sentAt":"2009-11-25T16:47:34Z","receivedAt":"2009-11-25T16:47:34Z","isPatch":false,"sender":{"key":"ydirson@linagora.com","avatar":null},"body":"I am investigating whether it is possible at all to have several\neclipse projects in a single git repo, and have those projects\ncorrectly seen as managed by git.\n\nWhen importing a git repo into eclipse, we get a list of projects to\nimport, but that list is empty.  What is expected by egit to get this\nlist filled ?\n\nIt also does not look like it would be possible to use the \"share\"\nfunctionnality to setup such a repository from multiple projects (or\nfrom a project set), right ?\n\nBest regards,\n-- \nYann\n"},{"id":"128333","messageId":"1259178799.4336.4.camel@yann-laptop","threadId":"21751","inReplyTo":"20091125164734.GF21347@linagora.com","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Yann Simon","fromEmail":"yann.simon.fr@gmail.com","sentAt":"2009-11-25T19:53:19Z","receivedAt":"2009-11-25T19:53:19Z","isPatch":false,"sender":{"key":"yann.simon.fr@gmail.com","avatar":"https://gravatar.com/avatar/2d926895d27ac988c5c8e591887e5a6a4c7036390403c74fce92519119b887a0?d=mp&s=160"},"body":"Le mercredi 25 novembre 2009 à 17:47 +0100, Yann Dirson a écrit :\n> It also does not look like it would be possible to use the \"share\"\n> functionnality to setup such a repository from multiple projects (or\n> from a project set), right ?\n\nThe last time I worked with egit, it was not yet implemented.\n\nYann\n"},{"id":"128344","messageId":"200911252227.40235.robin.rosenberg@dewire.com","threadId":"21751","inReplyTo":"20091125164734.GF21347@linagora.com","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2009-11-25T21:27:39Z","receivedAt":"2009-11-25T21:27:39Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 25 november 2009 17:47:34 skrev  Yann Dirson:\n> I am investigating whether it is possible at all to have several\n> eclipse projects in a single git repo, and have those projects\n> correctly seen as managed by git.\n>\n> When importing a git repo into eclipse, we get a list of projects to\n> import, but that list is empty.  What is expected by egit to get this\n> list filled ?\n\nBoth Egit and Jgit themselves have multiple projects in the same repo. \nAll projects must be located in the same directory structure.\n\nrepo/.git\n    |`--project1/.git\n    |`--project2\n\netc\nOther variations are possible.\n\n>\n> It also does not look like it would be possible to use the \"share\"\n> functionnality to setup such a repository from multiple projects (or\n> from a project set), right ?\n\nShare only tells Eclipse to attach EGit as the team provider, provided\nit is located in a git repo, or lets you create a repo if none exists.\n\n-- robin\n"},{"id":"128411","messageId":"20091126004817.GL11919@spearce.org","threadId":"21751","inReplyTo":"20091125164734.GF21347@linagora.com","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2009-11-26T00:48:17Z","receivedAt":"2009-11-26T00:48:17Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Yann Dirson <ydirson@linagora.com> wrote:\n> I am investigating whether it is possible at all to have several\n> eclipse projects in a single git repo, and have those projects\n> correctly seen as managed by git.\n\nAs Robin said, it should work.  EGit and JGit both use this layout.\n \n> When importing a git repo into eclipse, we get a list of projects to\n> import, but that list is empty.  What is expected by egit to get this\n> list filled ?\n\nThere should be .project files in the repository.  I think we scan\nthe entire checkout tree for .project files, but maybe we are doing\nsomething stupid and only looking at the top level directory of\nthe checkout.\n\n> It also does not look like it would be possible to use the \"share\"\n> functionnality to setup such a repository from multiple projects (or\n> from a project set), right ?\n\nNope, I don't think this is supported right now.  You need to\ninitialize the git repository by hand in the higher level directory\nthat holds the projects.\n\n-- \nShawn.\n"},{"id":"128417","messageId":"ed88cb980911251712o499ad3bexccca6be071801776@mail.gmail.com","threadId":"21751","inReplyTo":"20091126004817.GL11919@spearce.org","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Douglas Campos","fromEmail":"douglas@theros.info","sentAt":"2009-11-26T01:12:20Z","receivedAt":"2009-11-26T01:12:20Z","isPatch":false,"sender":{"key":"douglas@theros.info","avatar":"https://gravatar.com/avatar/bca8e0e43e860dab00ec17dd3f1b60df6af911655fae70a0bbdeebeb889de421?d=mp&s=160"},"body":"(worksforme) egit 0.5.x\n\nOn Wed, Nov 25, 2009 at 10:48 PM, Shawn O. Pearce <spearce@spearce.org> wrote:\n> Yann Dirson <ydirson@linagora.com> wrote:\n>> I am investigating whether it is possible at all to have several\n>> eclipse projects in a single git repo, and have those projects\n>> correctly seen as managed by git.\n>\n> As Robin said, it should work.  EGit and JGit both use this layout.\n>\n>> When importing a git repo into eclipse, we get a list of projects to\n>> import, but that list is empty.  What is expected by egit to get this\n>> list filled ?\n>\n> There should be .project files in the repository.  I think we scan\n> the entire checkout tree for .project files, but maybe we are doing\n> something stupid and only looking at the top level directory of\n> the checkout.\n>\n>> It also does not look like it would be possible to use the \"share\"\n>> functionnality to setup such a repository from multiple projects (or\n>> from a project set), right ?\n>\n> Nope, I don't think this is supported right now.  You need to\n> initialize the git repository by hand in the higher level directory\n> that holds the projects.\n>\n> --\n> Shawn.\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n>\n\n\n\n-- \nDouglas Campos (qmx)\n+55 11 7626 5959\n+55 11 6762 5959\n"},{"id":"128446","messageId":"551f769b0911260039u1f75decg66eded8069e67791@mail.gmail.com","threadId":"21751","inReplyTo":"20091126004817.GL11919@spearce.org","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Yann Simon","fromEmail":"yann.simon.fr@gmail.com","sentAt":"2009-11-26T08:39:11Z","receivedAt":"2009-11-26T08:39:11Z","isPatch":false,"sender":{"key":"yann.simon.fr@gmail.com","avatar":"https://gravatar.com/avatar/2d926895d27ac988c5c8e591887e5a6a4c7036390403c74fce92519119b887a0?d=mp&s=160"},"body":"2009/11/26 Shawn O. Pearce <spearce@spearce.org>:\n> Yann Dirson <ydirson@linagora.com> wrote:\n>> It also does not look like it would be possible to use the \"share\"\n>> functionnality to setup such a repository from multiple projects (or\n>> from a project set), right ?\n>\n> Nope, I don't think this is supported right now.  You need to\n> initialize the git repository by hand in the higher level directory\n> that holds the projects.\n\nThat was the question I initialy understood.\n"},{"id":"128465","messageId":"20091126143016.GF15136@linagora.com","threadId":"21751","inReplyTo":"20091126004817.GL11919@spearce.org","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Yann Dirson","fromEmail":"ydirson@linagora.com","sentAt":"2009-11-26T14:30:16Z","receivedAt":"2009-11-26T14:30:16Z","isPatch":false,"sender":{"key":"ydirson@linagora.com","avatar":null},"body":"On Wed, Nov 25, 2009 at 04:48:17PM -0800, Shawn O. Pearce wrote:\n> > When importing a git repo into eclipse, we get a list of projects to\n> > import, but that list is empty.  What is expected by egit to get this\n> > list filled ?\n> \n> There should be .project files in the repository.  I think we scan\n> the entire checkout tree for .project files, but maybe we are doing\n> something stupid and only looking at the top level directory of\n> the checkout.\n\nRight, we could make it work - the devs just did not have the habbit\nof commiting .project files.\n\n> > It also does not look like it would be possible to use the \"share\"\n> > functionnality to setup such a repository from multiple projects (or\n> > from a project set), right ?\n> \n> Nope, I don't think this is supported right now.  You need to\n> initialize the git repository by hand in the higher level directory\n> that holds the projects.\n\nYes, we did that by git-add'ing the initial projects manually and\npushing them, and we can now \"import\" that.\n\nThat makes me wonder if it should work to add a new project afterwards\nfrom within Eclipse.  If we create a new project under the git tree,\nand try to use \"share\", then we get presented a folded list containing\nthe project we want to add, which when unfolded reveals \"..\\.git\"\n(yes, this test done on windows) as repository, which is promising.\n\nBut then the field below near the \"Create\" button (the one with\n\"\\.git\" text on the right) gets polulated with the full project path\nwhen we click on the project in the list, and we could not unlock the\n\"next\" or \"finish\" button.  Are we just trying things the way they\nshould work but hit functionnality that is just not finished, or are\nwe completely off-track ?\n\nThanks much,\n-- \nYann\n"},{"id":"129003","messageId":"20091202142413.GB18165@linagora.com","threadId":"21751","inReplyTo":"200911252227.40235.robin.rosenberg@dewire.com","subject":"Re: [egit] Git repository with multiple eclipse projects ?","fromName":"Yann Dirson","fromEmail":"ydirson@linagora.com","sentAt":"2009-12-02T14:24:13Z","receivedAt":"2009-12-02T14:24:13Z","isPatch":false,"sender":{"key":"ydirson@linagora.com","avatar":null},"body":"On Wed, Nov 25, 2009 at 10:27:39PM +0100, Robin Rosenberg wrote:\n> onsdag 25 november 2009 17:47:34 skrev  Yann Dirson:\n> > I am investigating whether it is possible at all to have several\n> > eclipse projects in a single git repo, and have those projects\n> > correctly seen as managed by git.\n> >\n> > When importing a git repo into eclipse, we get a list of projects to\n> > import, but that list is empty.  What is expected by egit to get this\n> > list filled ?\n> \n> Both Egit and Jgit themselves have multiple projects in the same repo. \n> All projects must be located in the same directory structure.\n> \n> repo/.git\n>     |`--project1/.git\n>     |`--project2\n> \n> etc\n> Other variations are possible.\n\nYou seem to talk about nested git repo here.  Do you mean using\nsubmodules (I thought jgit did not support them yet) ?  git-subtree ?\n\n> >\n> > It also does not look like it would be possible to use the \"share\"\n> > functionnality to setup such a repository from multiple projects (or\n> > from a project set), right ?\n> \n> Share only tells Eclipse to attach EGit as the team provider, provided\n> it is located in a git repo, or lets you create a repo if none exists.\n\nLooks like there is a possibly-windows-specific issue here.\n\nThe test repo is a git repo with a couple of eclipse projects just\nbeneath the top-level.  It can be checked-out from both Ubuntu\n(Karmic) and Windows (Vista), and in both cases the projects can be\nattached to the team provider from the \"import\" wizard.\n\nOn an Ubuntu box, I could use \"team/disconnect\", and then \"share\" to\nattach to \"../.git\", it worked like a charm.  On the windows box\nhowever, reconnecting was not possible: the \"../.git\" line is not\nselectable.  Note that it does read \"../.git\" and not \"..\\.git\".\n\n\nNote that on my \"mostly squeeze\" Debian box, the import would succeed,\nbut in that case none of the projects were attached to the team\nprovider.  If afterwards I try to connect it, it silently does nothing.\n\nIn that case it may be a known bug: I have a ~/.git dir that is also\nseen by jgit, and which I am also proposed in the \"share\" dialog.  If\nI move it away, the request to attach is successful.\n\nBest regards,\n-- \nYann\n"}]}