summaryrefslogtreecommitdiff
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2011-01-24 10:53:09 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-01-24 10:53:09 -0800
commit0efbb7d9f488112d20a8ff257b72a3699aae8ef8 (patch)
tree271f1c67fee4e3664c96e667ad009d840739f52d /Documentation/git.txt
parentDocumentation: do not treat reset --keep as a special case (diff)
parentt1510: fix typo in the comment of a test (diff)
downloadtgif-0efbb7d9f488112d20a8ff257b72a3699aae8ef8.tar.xz
Merge branch 'jn/setup-fixes'
* jn/setup-fixes: t1510: fix typo in the comment of a test Documentation updates for 'GIT_WORK_TREE without GIT_DIR' historical usecase Subject: setup: officially support --work-tree without --git-dir tests: compress the setup tests tests: cosmetic improvements to the repo-setup test t/README: hint about using $(pwd) rather than $PWD in tests Fix expected values of setup tests on Windows
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