Re: [PATCH 22/32] checkout: support checking out into a new working directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 31, 2014 at 11:49 AM, Duy Nguyen <pclouds@xxxxxxxxx> 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 <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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]