From: Philip Oakley Date: Sun, 31 Aug 2014 11:08:49 GMT Subject: Re: [PATCH 22/32] checkout: support checking out into a new working directory Message-ID: <64D6AA311E524C27A8B6EDE7A63489D7@PhilipOakley> In-Reply-To: From: "Duy Nguyen" > 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 > That's fine. Glad that we're on the same wavelength for the documentation. >> 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". > > > > -- Philip