summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-01-23 15:49:41 -0800
committerJunio C Hamano <gitster@pobox.com>2011-01-24 10:13:59 -0800
commitea472c1e3524e5c46a54c96bdb5c1deca8f7de28 (patch)
tree3ace2a32e44f2b1ef7f8744f16181ae05c79fc83 /Documentation/git.txt
parent4868b2ea17b7a5e8171cb109423a25a269bfefe5 (diff)
downloadgit-ea472c1e3524e5c46a54c96bdb5c1deca8f7de28.tar.gz
Documentation updates for 'GIT_WORK_TREE without GIT_DIR' historical usecase
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-rw-r--r--Documentation/git.txt13
1 files changed, 4 insertions, 9 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 4e5fe4d4b5..0dac7aab57 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -291,17 +291,12 @@ help ...`.
path or relative path to current working directory.
--work-tree=<path>::
- Set the path to the working tree. The value will not be
- used in combination with repositories found automatically in
- a .git directory (i.e. $GIT_DIR is not set).
+ Set the path to the working tree. It can be an absolute path
+ or a path relative to the current working directory.
This can also be controlled by setting the GIT_WORK_TREE
environment variable and the core.worktree configuration
- variable. It can be an absolute path or relative path to
- current working directory.
- Note: If --git-dir or GIT_DIR are specified but none of
- --work-tree, GIT_WORK_TREE and core.worktree is specified,
- the current working directory is regarded as the top directory
- of your working tree.
+ variable (see core.worktree in linkgit:git-config[1] for a
+ more detailed discussion).
--bare::
Treat the repository as a bare repository. If GIT_DIR