From: Duy Nguyen Date: Sun, 31 Aug 2014 04:52:50 GMT Subject: Re: [PATCH 22/32] checkout: support checking out into a new working directory Message-ID: In-Reply-To: On Sun, Aug 31, 2014 at 11:49 AM, Duy Nguyen wrote: > All checkouts share the same repository. Linked checkouts see the > repository a bit different from the main checkout. When you perform > the command > > ------------ > git checkout --to > ------------ > > The checkout at will have a unique id that is also the > branch name (e.g. ""). A number may be appended to the id .. and I got my facts wrong. The above line should be: last component of . A number may be appended to the id > to make it unique. All worktree-specific files of this new checkout > are in $GIT_DIR/repos/ of the main checkout. So "HEAD" > inside the linked checkout will be resolved to > "$GIT_DIR/repos//HEAD", while "HEAD" from the main s/// > checkout remains "$GIT_DIR/HEAD". -- Duy