* .git as file pointing to directory?
@ 2010-11-04 18:22 Brad Larson
2010-11-04 18:32 ` Matthieu Moy
2010-11-04 18:43 ` Jonathan Nieder
0 siblings, 2 replies; 7+ messages in thread
From: Brad Larson @ 2010-11-04 18:22 UTC (permalink / raw)
To: git
Sorry if this is obvious, I can't figure out what term to search for.
At gittogether there was some talk about having .git be a file, not a
folder, with contents pointing to the real .git directory. Similar to
a symlink, but supported in Windows. Is there a specific name for
this feature? Where can I find more details? Which version of git
introduced this?
Thanks!
Brad
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: .git as file pointing to directory?
2010-11-04 18:22 .git as file pointing to directory? Brad Larson
@ 2010-11-04 18:32 ` Matthieu Moy
2010-11-04 20:35 ` Jens Lehmann
2010-11-04 18:43 ` Jonathan Nieder
1 sibling, 1 reply; 7+ messages in thread
From: Matthieu Moy @ 2010-11-04 18:32 UTC (permalink / raw)
To: Brad Larson; +Cc: git
Brad Larson <bklarson@gmail.com> writes:
> Sorry if this is obvious, I can't figure out what term to search for.
>
> At gittogether there was some talk about having .git be a file, not a
> folder, with contents pointing to the real .git directory. Similar to
> a symlink, but supported in Windows. Is there a specific name for
> this feature? Where can I find more details? Which version of git
> introduced this?
It has been discussed under the name "gitlink", which was
unfortunately also used for something else in the subtree
implementation, but AFAIK, it has never been implemented.
The closest equivalent is git-new-workdir, but it relies on symlinks,
and shares a bit more than it should with the other repository (i.e.
if you checkout the same branch is two workdirs, you're doomed).
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: .git as file pointing to directory?
2010-11-04 18:22 .git as file pointing to directory? Brad Larson
2010-11-04 18:32 ` Matthieu Moy
@ 2010-11-04 18:43 ` Jonathan Nieder
2010-11-04 21:07 ` Brad Larson
1 sibling, 1 reply; 7+ messages in thread
From: Jonathan Nieder @ 2010-11-04 18:43 UTC (permalink / raw)
To: Brad Larson; +Cc: git
Hi Brad,
Brad Larson wrote:
> At gittogether there was some talk about having .git be a file, not a
> folder, with contents pointing to the real .git directory. Similar to
> a symlink, but supported in Windows.
It is called a .git file. See gitrepository-layout(5), v1.5.6-rc0~93^2~3
(Add platform-independent .git "symlink", 2008-02-20), and the recent
rebase not handling core.worktree thread[1].
Hope that helps,
Jonathan
[1] http://thread.gmane.org/gmane.comp.version-control.git/160488/focus=160567
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: .git as file pointing to directory?
2010-11-04 18:32 ` Matthieu Moy
@ 2010-11-04 20:35 ` Jens Lehmann
2010-11-04 22:14 ` Matthieu Moy
0 siblings, 1 reply; 7+ messages in thread
From: Jens Lehmann @ 2010-11-04 20:35 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Brad Larson, git
Am 04.11.2010 19:32, schrieb Matthieu Moy:
> Brad Larson <bklarson@gmail.com> writes:
>
>> Sorry if this is obvious, I can't figure out what term to search for.
>>
>> At gittogether there was some talk about having .git be a file, not a
>> folder, with contents pointing to the real .git directory. Similar to
>> a symlink, but supported in Windows. Is there a specific name for
>> this feature? Where can I find more details? Which version of git
>> introduced this?
>
> It has been discussed under the name "gitlink", which was
> unfortunately also used for something else in the subtree
> implementation, but AFAIK, it has never been implemented.
Hmm, AFAIK gitlinks are already in heavy use for submodule entries ...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: .git as file pointing to directory?
2010-11-04 18:43 ` Jonathan Nieder
@ 2010-11-04 21:07 ` Brad Larson
0 siblings, 0 replies; 7+ messages in thread
From: Brad Larson @ 2010-11-04 21:07 UTC (permalink / raw)
To: Jonathan Nieder; +Cc: git
On Thu, Nov 4, 2010 at 1:43 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Hi Brad,
>
> Brad Larson wrote:
>
>> At gittogether there was some talk about having .git be a file, not a
>> folder, with contents pointing to the real .git directory. Similar to
>> a symlink, but supported in Windows.
>
> It is called a .git file. See gitrepository-layout(5), v1.5.6-rc0~93^2~3
> (Add platform-independent .git "symlink", 2008-02-20), and the recent
> rebase not handling core.worktree thread[1].
Thanks so much Jonathan. We were just listing the location of the
folder, but prepending it with "gitdir: " fixed things.
Thanks!
Brad
>
> Hope that helps,
> Jonathan
>
> [1] http://thread.gmane.org/gmane.comp.version-control.git/160488/focus=160567
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: .git as file pointing to directory?
2010-11-04 20:35 ` Jens Lehmann
@ 2010-11-04 22:14 ` Matthieu Moy
2010-11-04 23:28 ` Jens Lehmann
0 siblings, 1 reply; 7+ messages in thread
From: Matthieu Moy @ 2010-11-04 22:14 UTC (permalink / raw)
To: Jens Lehmann; +Cc: Brad Larson, git
Jens Lehmann <Jens.Lehmann@web.de> writes:
> Am 04.11.2010 19:32, schrieb Matthieu Moy:
>> Brad Larson <bklarson@gmail.com> writes:
>>
>>> Sorry if this is obvious, I can't figure out what term to search for.
>>>
>>> At gittogether there was some talk about having .git be a file, not a
>>> folder, with contents pointing to the real .git directory. Similar to
>>> a symlink, but supported in Windows. Is there a specific name for
>>> this feature? Where can I find more details? Which version of git
>>> introduced this?
>>
>> It has been discussed under the name "gitlink", which was
>> unfortunately also used for something else in the subtree
>> implementation, but AFAIK, it has never been implemented.
>
> Hmm, AFAIK gitlinks are already in heavy use for submodule entries ...
Err, isn't that precisely what I was saying? The same word has been
used in the subtree implementation, but the other concept with the
same name hasn't been implemented.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: .git as file pointing to directory?
2010-11-04 22:14 ` Matthieu Moy
@ 2010-11-04 23:28 ` Jens Lehmann
0 siblings, 0 replies; 7+ messages in thread
From: Jens Lehmann @ 2010-11-04 23:28 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Brad Larson, git
Am 04.11.2010 23:14, schrieb Matthieu Moy:
> Jens Lehmann <Jens.Lehmann@web.de> writes:
>
>> Am 04.11.2010 19:32, schrieb Matthieu Moy:
>>> Brad Larson <bklarson@gmail.com> writes:
>>>
>>>> Sorry if this is obvious, I can't figure out what term to search for.
>>>>
>>>> At gittogether there was some talk about having .git be a file, not a
>>>> folder, with contents pointing to the real .git directory. Similar to
>>>> a symlink, but supported in Windows. Is there a specific name for
>>>> this feature? Where can I find more details? Which version of git
>>>> introduced this?
>>>
>>> It has been discussed under the name "gitlink", which was
>>> unfortunately also used for something else in the subtree
>>> implementation, but AFAIK, it has never been implemented.
>>
>> Hmm, AFAIK gitlinks are already in heavy use for submodule entries ...
>
> Err, isn't that precisely what I was saying? The same word has been
> used in the subtree implementation, but the other concept with the
> same name hasn't been implemented.
Sorry, seems like I misunderstood what you where saying.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-04 23:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-04 18:22 .git as file pointing to directory? Brad Larson
2010-11-04 18:32 ` Matthieu Moy
2010-11-04 20:35 ` Jens Lehmann
2010-11-04 22:14 ` Matthieu Moy
2010-11-04 23:28 ` Jens Lehmann
2010-11-04 18:43 ` Jonathan Nieder
2010-11-04 21:07 ` Brad Larson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).