{"thread":{"id":"30902","subject":"Egit/Jgit support for relocated .git directories","startedAt":"2012-06-26T08:18:31Z","lastAt":"2012-07-07T10:18:12Z","messageCount":4,"participants":["Chris Packham","Shawn Pearce","Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"194267","messageId":"4FE97057.3040609@gmail.com","threadId":"30902","inReplyTo":null,"subject":"Egit/Jgit support for relocated .git directories","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2012-06-26T08:18:31Z","receivedAt":"2012-06-26T08:18:31Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"Hi,\n\nThis is a bit of a secondhand bug report/query so sorry if the details\nare a bit sketchy.\n\nSince git 1.7.8:\n\n``When populating a new submodule directory with \"git submodule init\",\nthe $GIT_DIR metainformation directory for submodules is created inside\n$GIT_DIR/modules/<name>/ directory of the superproject and referenced\nvia the gitfile mechanism. This is to make it possible to switch\nbetween commits in the superproject that has and does not have the\nsubmodule in the tree without re-cloning.''\n\nI've had several colleagues at work tell me that with the relocated\n$GIT_DIR the Egit integration with eclipse doesn't work. I can't really\nqualify \"doesn't work\" but from what I've been told importing the\nproject works but blaming/annotating doesn't.\n\nI believe the gitfile mechanism isn't new but it possibly hasn't been\nused by many Egit/Jgit users. Can anyone confirm if it is supported by\nEgit/Jgit (and I'm barking up the wrong tree).\n\nThanks,\nChris\n"},{"id":"194283","messageId":"CAJo=hJubPwt8y4NhhctMag5Yr6cbYXZ4sORTB1=FkTjQZhEsTQ@mail.gmail.com","threadId":"30902","inReplyTo":"4FE97057.3040609@gmail.com","subject":"Re: Egit/Jgit support for relocated .git directories","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2012-06-26T15:40:16Z","receivedAt":"2012-06-26T15:40:16Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"On Tue, Jun 26, 2012 at 1:18 AM, Chris Packham <judge.packham@gmail.com> wrote:\n> This is a bit of a secondhand bug report/query so sorry if the details\n> are a bit sketchy.\n>\n> Since git 1.7.8:\n>\n> ``When populating a new submodule directory with \"git submodule init\",\n> the $GIT_DIR metainformation directory for submodules is created inside\n> $GIT_DIR/modules/<name>/ directory of the superproject and referenced\n> via the gitfile mechanism. This is to make it possible to switch\n> between commits in the superproject that has and does not have the\n> submodule in the tree without re-cloning.''\n>\n> I've had several colleagues at work tell me that with the relocated\n> $GIT_DIR the Egit integration with eclipse doesn't work. I can't really\n> qualify \"doesn't work\" but from what I've been told importing the\n> project works but blaming/annotating doesn't.\n>\n> I believe the gitfile mechanism isn't new but it possibly hasn't been\n> used by many Egit/Jgit users. Can anyone confirm if it is supported by\n> Egit/Jgit (and I'm barking up the wrong tree).\n\nI am pretty certain we forgot to support gitfile in JGit. Hence this\ndoesn't work in EGit.\n\nWhoops.\n"},{"id":"194407","messageId":"4FEC12CE.6030603@gmail.com","threadId":"30902","inReplyTo":"CAJo=hJubPwt8y4NhhctMag5Yr6cbYXZ4sORTB1=FkTjQZhEsTQ@mail.gmail.com","subject":"Re: Egit/Jgit support for relocated .git directories","fromName":"Chris Packham","fromEmail":"judge.packham@gmail.com","sentAt":"2012-06-28T08:16:14Z","receivedAt":"2012-06-28T08:16:14Z","isPatch":false,"sender":{"key":"judge.packham@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155667?v=4"},"body":"On 06/27/2012 03:40 AM, Shawn Pearce wrote:\n> On Tue, Jun 26, 2012 at 1:18 AM, Chris Packham <judge.packham@gmail.com> wrote:\n>> This is a bit of a secondhand bug report/query so sorry if the details\n>> are a bit sketchy.\n>>\n>> Since git 1.7.8:\n>>\n>> ``When populating a new submodule directory with \"git submodule init\",\n>> the $GIT_DIR metainformation directory for submodules is created inside\n>> $GIT_DIR/modules/<name>/ directory of the superproject and referenced\n>> via the gitfile mechanism. This is to make it possible to switch\n>> between commits in the superproject that has and does not have the\n>> submodule in the tree without re-cloning.''\n>>\n>> I've had several colleagues at work tell me that with the relocated\n>> $GIT_DIR the Egit integration with eclipse doesn't work. I can't really\n>> qualify \"doesn't work\" but from what I've been told importing the\n>> project works but blaming/annotating doesn't.\n>>\n>> I believe the gitfile mechanism isn't new but it possibly hasn't been\n>> used by many Egit/Jgit users. Can anyone confirm if it is supported by\n>> Egit/Jgit (and I'm barking up the wrong tree).\n> \n> I am pretty certain we forgot to support gitfile in JGit. Hence this\n> doesn't work in EGit.\n> \n> Whoops.\n\nThis[1] little snippet makes me think it wasn't entirely forgotten but\nperhaps not finished or widely tested.\n\nAlternatively as a workaround is there anyway of telling git to use old\nthe behaviour for git submodule init?\n\n--\n[1] -\nhttp://git.eclipse.org/c/jgit/jgit.git/tree/org.eclipse.jgit/src/org/eclipse/jgit/lib/BaseRepositoryBuilder.java#n93\n"},{"id":"194769","messageId":"4FF80CE4.60303@dewire.com","threadId":"30902","inReplyTo":"4FE97057.3040609@gmail.com","subject":"Re: Egit/Jgit support for relocated .git directories","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg@dewire.com","sentAt":"2012-07-07T10:18:12Z","receivedAt":"2012-07-07T10:18:12Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"Chris Packham skrev 2012-06-26 10.18:\n> Hi,\n>\n> This is a bit of a secondhand bug report/query so sorry if the details\n> are a bit sketchy.\n>\n> Since git 1.7.8:\n>\n> ``When populating a new submodule directory with \"git submodule init\",\n> the $GIT_DIR metainformation directory for submodules is created inside\n> $GIT_DIR/modules/<name>/ directory of the superproject and referenced\n> via the gitfile mechanism. This is to make it possible to switch\n> between commits in the superproject that has and does not have the\n> submodule in the tree without re-cloning.''\n>\n> I've had several colleagues at work tell me that with the relocated\n> $GIT_DIR the Egit integration with eclipse doesn't work. I can't really\n> qualify \"doesn't work\" but from what I've been told importing the\n> project works but blaming/annotating doesn't.\n>\n> I believe the gitfile mechanism isn't new but it possibly hasn't been\n> used by many Egit/Jgit users. Can anyone confirm if it is supported by\n> Egit/Jgit (and I'm barking up the wrong tree).\n\nIt is supported. There is however a commit as late as in May that relates\nto gitfile, so you may need 2.0.\n\n-- robin\n"}]}