From: Willy Tarreau <w@1wt.eu>
To: Julian Phillips <julian@quantumfyre.co.uk>
Cc: git@vger.kernel.org
Subject: Re: Multiple working trees with GIT ?
Date: Thu, 24 Jan 2008 13:59:05 +0100 [thread overview]
Message-ID: <20080124125905.GC13247@1wt.eu> (raw)
In-Reply-To: <Pine.LNX.4.64.0801240947230.14173@reaper.quantumfyre.co.uk>
Hi Julian,
On Thu, Jan 24, 2008 at 09:59:05AM +0000, Julian Phillips wrote:
(...)
> >This works pretty well. I can simply cd worktree/variant_a and work on a
> >file, or pull master, or even git-cherry-pick from other branches (pretty
> >convenient for this usage). But I don't know what caveats I may encounter.
>
> You might want to have a look at the git-new-workdir script in contrib, it
> does basically the same thing. It's been there for about 10 months now.
> It was based on an email from Junio:
>
> http://article.gmane.org/gmane.comp.version-control.git/41513/
Interesting lecture, thanks for the pointer. At least now I know that it is
not too much exotic.
> However, there are some caveats about using this approach, basically about
> the fact that there is nothing stopping you from updating refs that are
> currently checked out in another directory and causing yourself all sorts
> of pain ... the topic has cropped up a couple of times on the list since
> the script was added.
hmmm good point. Given that I'm used to push into remote working dirs and
to get caught by this problem, I think I would most often escape from the
caveat, but we should take care of not trapping newbies.
> >Maybe there are other solutions too. I see that we tend to replace symlinks
> >everywhere with ref files. We might as well (in a far future version)
> >accept
> >a file for ".git" which would contain a path to the central repo and the
> >branch's head.
>
> There was a suggestion for something not too dissimilar even before the
> new-workdir script:
>
> http://thread.gmane.org/gmane.comp.version-control.git/33755
OK, thank you for your links. I still think I will wo the easy way for now,
probably using git-new-workdir, waiting for a general consensus on the subject.
Regards,
Willy
next prev parent reply other threads:[~2008-01-24 13:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-24 7:49 Multiple working trees with GIT ? Willy Tarreau
2008-01-24 9:59 ` Julian Phillips
2008-01-24 11:04 ` Johannes Schindelin
2008-01-24 12:56 ` Willy Tarreau
2008-01-24 13:38 ` Johannes Schindelin
2008-01-24 14:10 ` Willy Tarreau
2008-01-24 12:59 ` Willy Tarreau [this message]
2008-01-24 14:51 ` J. Bruce Fields
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080124125905.GC13247@1wt.eu \
--to=w@1wt.eu \
--cc=git@vger.kernel.org \
--cc=julian@quantumfyre.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).