From: Yann Dirson <ydirson@linagora.com>
To: Robin Rosenberg <robin.rosenberg@dewire.com>
Cc: git@vger.kernel.org, egit-dev@eclipse.org
Subject: Re: [egit] Git repository with multiple eclipse projects ?
Date: Wed, 2 Dec 2009 15:24:13 +0100 [thread overview]
Message-ID: <20091202142413.GB18165@linagora.com> (raw)
In-Reply-To: <200911252227.40235.robin.rosenberg@dewire.com>
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
next prev parent reply other threads:[~2009-12-02 14:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091202142413.GB18165@linagora.com \
--to=ydirson@linagora.com \
--cc=egit-dev@eclipse.org \
--cc=git@vger.kernel.org \
--cc=robin.rosenberg@dewire.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox