Re: '.git file' alternative, native (cross-platform) workdir support.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Schindelin
Date: Friday, February 29, 2008 - 5:54 am

Hi,

On Fri, 29 Feb 2008, Marius Storm-Olsen wrote:


This is the main reason, yes.

However, you can also use the .git file to separate the working directory 
from the repository, say, on two different drives, when you do not have 
symbolic links.


Not only would it requre these patches, but it would actually make a 
_safe_ multiple-workdirs feature possible.

ATM the problem is that you can change a ref that is checked out 
elsewhere, and if you are not a Git expert, it will just make your life 
miserable.

However, if we do not pretend to have different repositories, but actually 
use the _identical_ repository for multiple working directories, we can 
make the mechanisms safe!

This is basically the reason why I do not like the current new-workdir 
script (and the patch in my private tree where I taught git-branch about 
it).

So while your approach may seem easier in the short run, there is no way 
you can make it safe.  No way, except going the full nine yards, and 
actually use the same repository, which means that you have to have the 
"other patches", too.

Ciao,
Dscho

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
'.git file' alternative, native (cross-platform) workdir s ..., Marius Storm-Olsen, (Fri Feb 29, 5:27 am)
Re: '.git file' alternative, native (cross-platform) workd ..., Johannes Schindelin, (Fri Feb 29, 5:54 am)
Re: '.git file' alternative, native (cross-platform) workd ..., Marius Storm-Olsen, (Fri Feb 29, 6:24 am)
Re: '.git file' alternative, native (cross-platform) workd ..., Johannes Schindelin, (Fri Feb 29, 7:25 am)
Re: '.git file' alternative, native (cross-platform) workd ..., Marius Storm-Olsen, (Fri Feb 29, 7:51 am)
Re: '.git file' alternative, native (cross-platform) workd ..., Marius Storm-Olsen, (Fri Feb 29, 2:32 pm)