{"thread":{"id":"25644","subject":".git as file pointing to directory?","startedAt":"2010-11-04T18:22:25Z","lastAt":"2010-11-04T23:28:20Z","messageCount":7,"participants":["Brad Larson","Matthieu Moy","Jonathan Nieder","Jens Lehmann"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"155189","messageId":"AANLkTikB4p9=EQRsAJTe4-nAw5udz2pfcRd4WPsfms86@mail.gmail.com","threadId":"25644","inReplyTo":null,"subject":".git as file pointing to directory?","fromName":"Brad Larson","fromEmail":"bklarson@gmail.com","sentAt":"2010-11-04T18:22:25Z","receivedAt":"2010-11-04T18:22:25Z","isPatch":false,"sender":{"key":"bklarson@gmail.com","avatar":"https://gravatar.com/avatar/40c5475c81d0a889d793db4de56550430124eec6f53f21aaac53373818a743e7?d=mp&s=160"},"body":"Sorry if this is obvious, I can't figure out what term to search for.\n\nAt gittogether there was some talk about having .git be a file, not a\nfolder, with contents pointing to the real .git directory.  Similar to\na symlink, but supported in Windows.  Is there a specific name for\nthis feature?  Where can I find more details?  Which version of git\nintroduced this?\n\nThanks!\nBrad\n"},{"id":"155190","messageId":"vpqpqulc52q.fsf@bauges.imag.fr","threadId":"25644","inReplyTo":"AANLkTikB4p9=EQRsAJTe4-nAw5udz2pfcRd4WPsfms86@mail.gmail.com","subject":"Re: .git as file pointing to directory?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2010-11-04T18:32:45Z","receivedAt":"2010-11-04T18:32:45Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Brad Larson <bklarson@gmail.com> writes:\n\n> Sorry if this is obvious, I can't figure out what term to search for.\n>\n> At gittogether there was some talk about having .git be a file, not a\n> folder, with contents pointing to the real .git directory.  Similar to\n> a symlink, but supported in Windows.  Is there a specific name for\n> this feature?  Where can I find more details?  Which version of git\n> introduced this?\n\nIt has been discussed under the name \"gitlink\", which was\nunfortunately also used for something else in the subtree\nimplementation, but AFAIK, it has never been implemented.\n\nThe closest equivalent is git-new-workdir, but it relies on symlinks,\nand shares a bit more than it should with the other repository (i.e.\nif you checkout the same branch is two workdirs, you're doomed).\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"155192","messageId":"20101104184321.GA16929@burratino","threadId":"25644","inReplyTo":"AANLkTikB4p9=EQRsAJTe4-nAw5udz2pfcRd4WPsfms86@mail.gmail.com","subject":"Re: .git as file pointing to directory?","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2010-11-04T18:43:21Z","receivedAt":"2010-11-04T18:43:21Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi Brad,\n\nBrad Larson wrote:\n\n> At gittogether there was some talk about having .git be a file, not a\n> folder, with contents pointing to the real .git directory.  Similar to\n> a symlink, but supported in Windows.\n\nIt is called a .git file.  See gitrepository-layout(5), v1.5.6-rc0~93^2~3\n(Add platform-independent .git \"symlink\", 2008-02-20), and the recent\nrebase not handling core.worktree thread[1].\n\nHope that helps,\nJonathan\n\n[1] http://thread.gmane.org/gmane.comp.version-control.git/160488/focus=160567\n"},{"id":"155206","messageId":"4CD31904.5040308@web.de","threadId":"25644","inReplyTo":"vpqpqulc52q.fsf@bauges.imag.fr","subject":"Re: .git as file pointing to directory?","fromName":"Jens Lehmann","fromEmail":"jens.lehmann@web.de","sentAt":"2010-11-04T20:35:16Z","receivedAt":"2010-11-04T20:35:16Z","isPatch":false,"sender":{"key":"jens.lehmann@web.de","avatar":"https://avatars.githubusercontent.com/u/135220?v=4"},"body":"Am 04.11.2010 19:32, schrieb Matthieu Moy:\n> Brad Larson <bklarson@gmail.com> writes:\n> \n>> Sorry if this is obvious, I can't figure out what term to search for.\n>>\n>> At gittogether there was some talk about having .git be a file, not a\n>> folder, with contents pointing to the real .git directory.  Similar to\n>> a symlink, but supported in Windows.  Is there a specific name for\n>> this feature?  Where can I find more details?  Which version of git\n>> introduced this?\n> \n> It has been discussed under the name \"gitlink\", which was\n> unfortunately also used for something else in the subtree\n> implementation, but AFAIK, it has never been implemented.\n\nHmm, AFAIK gitlinks are already in heavy use for submodule entries ...\n"},{"id":"155213","messageId":"AANLkTinMiSNCC0EUDRvxiW0V+upjEemP_xYwjcWcNC6L@mail.gmail.com","threadId":"25644","inReplyTo":"20101104184321.GA16929@burratino","subject":"Re: .git as file pointing to directory?","fromName":"Brad Larson","fromEmail":"bklarson@gmail.com","sentAt":"2010-11-04T21:07:00Z","receivedAt":"2010-11-04T21:07:00Z","isPatch":false,"sender":{"key":"bklarson@gmail.com","avatar":"https://gravatar.com/avatar/40c5475c81d0a889d793db4de56550430124eec6f53f21aaac53373818a743e7?d=mp&s=160"},"body":"On Thu, Nov 4, 2010 at 1:43 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:\n> Hi Brad,\n>\n> Brad Larson wrote:\n>\n>> At gittogether there was some talk about having .git be a file, not a\n>> folder, with contents pointing to the real .git directory.  Similar to\n>> a symlink, but supported in Windows.\n>\n> It is called a .git file.  See gitrepository-layout(5), v1.5.6-rc0~93^2~3\n> (Add platform-independent .git \"symlink\", 2008-02-20), and the recent\n> rebase not handling core.worktree thread[1].\n\nThanks so much Jonathan.  We were just listing the location of the\nfolder, but prepending it with \"gitdir: \" fixed things.\n\nThanks!\nBrad\n\n>\n> Hope that helps,\n> Jonathan\n>\n> [1] http://thread.gmane.org/gmane.comp.version-control.git/160488/focus=160567\n>\n"},{"id":"155229","messageId":"vpqbp64d9e0.fsf@bauges.imag.fr","threadId":"25644","inReplyTo":"4CD31904.5040308@web.de","subject":"Re: .git as file pointing to directory?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2010-11-04T22:14:15Z","receivedAt":"2010-11-04T22:14:15Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Jens Lehmann <Jens.Lehmann@web.de> writes:\n\n> Am 04.11.2010 19:32, schrieb Matthieu Moy:\n>> Brad Larson <bklarson@gmail.com> writes:\n>> \n>>> Sorry if this is obvious, I can't figure out what term to search for.\n>>>\n>>> At gittogether there was some talk about having .git be a file, not a\n>>> folder, with contents pointing to the real .git directory.  Similar to\n>>> a symlink, but supported in Windows.  Is there a specific name for\n>>> this feature?  Where can I find more details?  Which version of git\n>>> introduced this?\n>> \n>> It has been discussed under the name \"gitlink\", which was\n>> unfortunately also used for something else in the subtree\n>> implementation, but AFAIK, it has never been implemented.\n>\n> Hmm, AFAIK gitlinks are already in heavy use for submodule entries ...\n\nErr, isn't that precisely what I was saying? The same word has been\nused in the subtree implementation, but the other concept with the\nsame name hasn't been implemented.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"155238","messageId":"4CD34194.8010002@web.de","threadId":"25644","inReplyTo":"vpqbp64d9e0.fsf@bauges.imag.fr","subject":"Re: .git as file pointing to directory?","fromName":"Jens Lehmann","fromEmail":"jens.lehmann@web.de","sentAt":"2010-11-04T23:28:20Z","receivedAt":"2010-11-04T23:28:20Z","isPatch":false,"sender":{"key":"jens.lehmann@web.de","avatar":"https://avatars.githubusercontent.com/u/135220?v=4"},"body":"Am 04.11.2010 23:14, schrieb Matthieu Moy:\n> Jens Lehmann <Jens.Lehmann@web.de> writes:\n> \n>> Am 04.11.2010 19:32, schrieb Matthieu Moy:\n>>> Brad Larson <bklarson@gmail.com> writes:\n>>>\n>>>> Sorry if this is obvious, I can't figure out what term to search for.\n>>>>\n>>>> At gittogether there was some talk about having .git be a file, not a\n>>>> folder, with contents pointing to the real .git directory.  Similar to\n>>>> a symlink, but supported in Windows.  Is there a specific name for\n>>>> this feature?  Where can I find more details?  Which version of git\n>>>> introduced this?\n>>>\n>>> It has been discussed under the name \"gitlink\", which was\n>>> unfortunately also used for something else in the subtree\n>>> implementation, but AFAIK, it has never been implemented.\n>>\n>> Hmm, AFAIK gitlinks are already in heavy use for submodule entries ...\n> \n> Err, isn't that precisely what I was saying? The same word has been\n> used in the subtree implementation, but the other concept with the\n> same name hasn't been implemented.\n\nSorry, seems like I misunderstood what you where saying.\n"}]}