On Thu, 3 Oct 2013 01:28:03 -0700 (PDT)
pof Andras <porje...@gmail.com> wrote:

> I would like to implement a multi-workspace version of git. 
> The main goal is to have several independent workspaces using only
> one and single repository (without their own cloned repos). All these
> things will run on one host, or probably will be located on nfs and
> will be available on more hosts. Yes, I know there should be some
> restrictions, for example push and pull will work on the repo
> (probably there can be something like my-push). Branches will be
> somehow tied to the workspaces, also all workspaces will have its own
> HEAD. 
> 
> I would like to discuss here how can it be implemented, what will (or
> will not) work.

That was implemented long time ago in the form of the git-new-workdir
script available in the "contrib" Git subdirectory [1].
The basic idea this Unix shell script implements is to create a separate
directory with ".git" subdirectory in it which links to the "real" one
*but* leaving intact things like HEAD which are purely local.
This allows to have any number of separate checkouts of different
branches, all referring to a single repository.

Note that this script won't work on Windows as it makes use of symlinks
which doesn't play together well with Windows.

1. https://github.com/git/git/blob/master/contrib/workdir/git-new-workdir

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to