Re: [PATCH 22/32] checkout: support checking out into a new working directory
On Sun, Aug 31, 2014 at 11:49 AM, Duy Nguyen <pclouds@gmail.com> wrote:
Show 10 quoted lines
> 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 <some-location> <some-branch>
> ------------
>
> The checkout at <some-location> will have a unique id that is also the
> branch name (e.g. "<some-branch>"). A number may be appended to the id
.. and I got my facts wrong. The above line should be:
last component of <some-location>. 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/<unique-id> of the main checkout. So "HEAD"
> inside the linked checkout will be resolved to
> "$GIT_DIR/repos/<some-branch>/HEAD", while "HEAD" from the main
s/<some-branch>/<unique-id>/
> checkout remains "$GIT_DIR/HEAD".
--
Duy