All of lore.kernel.org
 help / color / mirror / Atom feed
* Egit/Jgit support for relocated .git directories
@ 2012-06-26  8:18 Chris Packham
  2012-06-26 15:40 ` Shawn Pearce
  2012-07-07 10:18 ` Robin Rosenberg
  0 siblings, 2 replies; 4+ messages in thread
From: Chris Packham @ 2012-06-26  8:18 UTC (permalink / raw)
  To: git, jgit-dev, egit-dev

Hi,

This is a bit of a secondhand bug report/query so sorry if the details
are a bit sketchy.

Since git 1.7.8:

``When populating a new submodule directory with "git submodule init",
the $GIT_DIR metainformation directory for submodules is created inside
$GIT_DIR/modules/<name>/ directory of the superproject and referenced
via the gitfile mechanism. This is to make it possible to switch
between commits in the superproject that has and does not have the
submodule in the tree without re-cloning.''

I've had several colleagues at work tell me that with the relocated
$GIT_DIR the Egit integration with eclipse doesn't work. I can't really
qualify "doesn't work" but from what I've been told importing the
project works but blaming/annotating doesn't.

I believe the gitfile mechanism isn't new but it possibly hasn't been
used by many Egit/Jgit users. Can anyone confirm if it is supported by
Egit/Jgit (and I'm barking up the wrong tree).

Thanks,
Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Egit/Jgit support for relocated .git directories
  2012-06-26  8:18 Egit/Jgit support for relocated .git directories Chris Packham
@ 2012-06-26 15:40 ` Shawn Pearce
  2012-06-28  8:16   ` Chris Packham
  2012-07-07 10:18 ` Robin Rosenberg
  1 sibling, 1 reply; 4+ messages in thread
From: Shawn Pearce @ 2012-06-26 15:40 UTC (permalink / raw)
  To: Chris Packham; +Cc: git, jgit-dev, egit-dev

On Tue, Jun 26, 2012 at 1:18 AM, Chris Packham <judge.packham@gmail.com> wrote:
> This is a bit of a secondhand bug report/query so sorry if the details
> are a bit sketchy.
>
> Since git 1.7.8:
>
> ``When populating a new submodule directory with "git submodule init",
> the $GIT_DIR metainformation directory for submodules is created inside
> $GIT_DIR/modules/<name>/ directory of the superproject and referenced
> via the gitfile mechanism. This is to make it possible to switch
> between commits in the superproject that has and does not have the
> submodule in the tree without re-cloning.''
>
> I've had several colleagues at work tell me that with the relocated
> $GIT_DIR the Egit integration with eclipse doesn't work. I can't really
> qualify "doesn't work" but from what I've been told importing the
> project works but blaming/annotating doesn't.
>
> I believe the gitfile mechanism isn't new but it possibly hasn't been
> used by many Egit/Jgit users. Can anyone confirm if it is supported by
> Egit/Jgit (and I'm barking up the wrong tree).

I am pretty certain we forgot to support gitfile in JGit. Hence this
doesn't work in EGit.

Whoops.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Egit/Jgit support for relocated .git directories
  2012-06-26 15:40 ` Shawn Pearce
@ 2012-06-28  8:16   ` Chris Packham
  0 siblings, 0 replies; 4+ messages in thread
From: Chris Packham @ 2012-06-28  8:16 UTC (permalink / raw)
  To: Shawn Pearce; +Cc: git, jgit-dev, egit-dev

On 06/27/2012 03:40 AM, Shawn Pearce wrote:
> On Tue, Jun 26, 2012 at 1:18 AM, Chris Packham <judge.packham@gmail.com> wrote:
>> This is a bit of a secondhand bug report/query so sorry if the details
>> are a bit sketchy.
>>
>> Since git 1.7.8:
>>
>> ``When populating a new submodule directory with "git submodule init",
>> the $GIT_DIR metainformation directory for submodules is created inside
>> $GIT_DIR/modules/<name>/ directory of the superproject and referenced
>> via the gitfile mechanism. This is to make it possible to switch
>> between commits in the superproject that has and does not have the
>> submodule in the tree without re-cloning.''
>>
>> I've had several colleagues at work tell me that with the relocated
>> $GIT_DIR the Egit integration with eclipse doesn't work. I can't really
>> qualify "doesn't work" but from what I've been told importing the
>> project works but blaming/annotating doesn't.
>>
>> I believe the gitfile mechanism isn't new but it possibly hasn't been
>> used by many Egit/Jgit users. Can anyone confirm if it is supported by
>> Egit/Jgit (and I'm barking up the wrong tree).
> 
> I am pretty certain we forgot to support gitfile in JGit. Hence this
> doesn't work in EGit.
> 
> Whoops.

This[1] little snippet makes me think it wasn't entirely forgotten but
perhaps not finished or widely tested.

Alternatively as a workaround is there anyway of telling git to use old
the behaviour for git submodule init?

--
[1] -
http://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java#n93

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Egit/Jgit support for relocated .git directories
  2012-06-26  8:18 Egit/Jgit support for relocated .git directories Chris Packham
  2012-06-26 15:40 ` Shawn Pearce
@ 2012-07-07 10:18 ` Robin Rosenberg
  1 sibling, 0 replies; 4+ messages in thread
From: Robin Rosenberg @ 2012-07-07 10:18 UTC (permalink / raw)
  To: Chris Packham; +Cc: git, jgit-dev, egit-dev

Chris Packham skrev 2012-06-26 10.18:
> Hi,
>
> This is a bit of a secondhand bug report/query so sorry if the details
> are a bit sketchy.
>
> Since git 1.7.8:
>
> ``When populating a new submodule directory with "git submodule init",
> the $GIT_DIR metainformation directory for submodules is created inside
> $GIT_DIR/modules/<name>/ directory of the superproject and referenced
> via the gitfile mechanism. This is to make it possible to switch
> between commits in the superproject that has and does not have the
> submodule in the tree without re-cloning.''
>
> I've had several colleagues at work tell me that with the relocated
> $GIT_DIR the Egit integration with eclipse doesn't work. I can't really
> qualify "doesn't work" but from what I've been told importing the
> project works but blaming/annotating doesn't.
>
> I believe the gitfile mechanism isn't new but it possibly hasn't been
> used by many Egit/Jgit users. Can anyone confirm if it is supported by
> Egit/Jgit (and I'm barking up the wrong tree).

It is supported. There is however a commit as late as in May that relates
to gitfile, so you may need 2.0.

-- robin

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-07 10:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-26  8:18 Egit/Jgit support for relocated .git directories Chris Packham
2012-06-26 15:40 ` Shawn Pearce
2012-06-28  8:16   ` Chris Packham
2012-07-07 10:18 ` Robin Rosenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.