summaryrefslogtreecommitdiff
path: root/Documentation/gitrepository-layout.txt
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2014-11-30 08:24:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-12-01 19:00:16 (GMT)
commit529fef20cf94dbd5c16f7a239ffc2b06f3cf8bb7 (patch)
tree732a63391953b43db6a149b585822e2bcd57f9f6 /Documentation/gitrepository-layout.txt
parent91aacda85a91192a9f66a0f175d739f77971412f (diff)
downloadgit-529fef20cf94dbd5c16f7a239ffc2b06f3cf8bb7.zip
git-529fef20cf94dbd5c16f7a239ffc2b06f3cf8bb7.tar.gz
git-529fef20cf94dbd5c16f7a239ffc2b06f3cf8bb7.tar.bz2
checkout: support checking out into a new working directory
"git checkout --to" sets up a new working directory with a .git file pointing to $GIT_DIR/worktrees/<id>. It then executes "git checkout" again on the new worktree with the same arguments except "--to" is taken out. The second checkout execution, which is not contaminated with any info from the current repository, will actually check out and everything that normal "git checkout" does. Helped-by: Marc Branchaud <marcnarc@xiplink.com> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/gitrepository-layout.txt')
-rw-r--r--Documentation/gitrepository-layout.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/gitrepository-layout.txt b/Documentation/gitrepository-layout.txt
index 2dc5667..8228450 100644
--- a/Documentation/gitrepository-layout.txt
+++ b/Documentation/gitrepository-layout.txt
@@ -252,6 +252,13 @@ modules::
directory is ignored if $GIT_COMMON_DIR is set and
"$GIT_COMMON_DIR/modules" will be used instead.
+worktrees::
+ Contains worktree specific information of linked
+ checkouts. Each subdirectory contains the worktree-related
+ part of a linked checkout. This directory is ignored if
+ $GIT_COMMON_DIR is set and "$GIT_COMMON_DIR/worktrees" will be
+ used instead.
+
SEE ALSO
--------
linkgit:git-init[1],