git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 29, 2008, 14:25 UTC
Message-ID
<alpine.LSU.1.00.0802291333310.22527@racer.site>
In-Reply-To
<47C80786.4070701@trolltech.com>
Hi,
On Fri, 29 Feb 2008, Marius Storm-Olsen wrote:
Show 14 quoted lines
> Johannes Schindelin said the following on 29.02.2008 13:54:
> > On Fri, 29 Feb 2008, Marius Storm-Olsen wrote:
> > > However, wouldn't simply redirecting everything into a real repo 
> > > then create problems with shared index file and more? A problem 
> > > which could be tacled by file suffixes or other methods, I'm sure, 
> > > but which would require even more patches to achieve the goal.
> > 
> > Not only would it requre these patches, but it would actually make a 
> > _safe_ multiple-workdirs feature possible.
> 
> Sure, I'm aware of that. The initial goal was to make something which 
> works as the current contrib/workdir/git-new-workdir, just 
> cross-platform. Then we can take it from there, step by step, until we 
> have something which works safely; instead of taking a single big leap.
That's what I am saying: there is no way to make it safe.
> I'm actually not sure that it's impossible to make it safe. My 
> implementation works by redirecting files into the real repo. However, 
> we can also detect when redirection is in effect, and do extra 
> 'maintainance' things then, to avoid the bad effects.
>From the perspective of Windows, I guess it is easy to overlook the fact 
that permissions can break your idea.

Even after creating a second working tree for an existing repository, the permissions of the original repository can change.

The only way to be on the safe side is to use _the repository_ twice. IOW not having a second .git/ directory.

Also, having a single .git is just a very simple, and thus preferable concept, to having part of this, and part of that repository.

Ciao, Dscho

Previous: Jakub NarebskiNext: Marius Storm-Olsen
Message 5 of 8 in “'.git file' alternative, native (cross-platform) workdir support.”
  1. Marius Storm-OlsenFeb 29, 2008
  2. Johannes SchindelinFeb 29, 2008
  3. Marius Storm-OlsenFeb 29, 2008
  4. Jakub NarebskiFeb 29, 2008
  5. Johannes SchindelinFeb 29, 2008
  6. Marius Storm-OlsenFeb 29, 2008
  7. Junio C HamanoFeb 29, 2008
  8. Marius Storm-OlsenFeb 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.