git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Fredrik Gustafsson <iveqy@iveqy.com>
Cc: Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
	"J. Bakshi" <joydeep@infoservices.in>,
	git@vger.kernel.org
Subject: Re: can I use multiple worktree in same git repo ?
Date: Thu, 21 Jul 2011 20:50:19 +0200	[thread overview]
Message-ID: <201107212050.20108.jnareb@gmail.com> (raw)
In-Reply-To: <20110721182215.GA9505@kolya>

On Thu, 21 Jul 2011, Fredrik Gustafsson wrote:
> On Thu, Jul 21, 2011 at 11:17:57AM -0700, Jakub Narebski wrote:

> > Actually with git-new-workdir you can have multiple working
> > directories associated with single repository, by the way of symlinks.
> > 
> > Note however that if you intend to *work* in those workdirs, they
> > better correspond to different branches... or you can mess something
> > heavy.
> 
> It would be possible to use the .git-file feature here. Then symlinks are
> avoided and the solution is portable.

Actually it wouldn't.  Each new workdir has a separate HEAD and a
separate index; it is contents of .git that is symlinked, not .git
itself.

-- 
Jakub Narebski
Poland

  reply	other threads:[~2011-07-21 18:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-20 12:54 can I use multiple worktree in same git repo ? J. Bakshi
2011-07-20 13:25 ` Nguyen Thai Ngoc Duy
2011-07-20 16:12   ` J. Bakshi
2011-07-21  3:20     ` Nguyen Thai Ngoc Duy
2011-07-21  6:07       ` J. Bakshi
2011-07-21 18:17   ` Jakub Narebski
2011-07-21 18:22     ` Fredrik Gustafsson
2011-07-21 18:50       ` Jakub Narebski [this message]
2011-07-22  9:06         ` Sergio

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=201107212050.20108.jnareb@gmail.com \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=iveqy@iveqy.com \
    --cc=joydeep@infoservices.in \
    --cc=pclouds@gmail.com \
    /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).