$GIT_COMMON_DIR: a new environment variable
[gitweb.git] / Documentation / git.txt
index 9202010d80311fb3177fef4d8d5409cef78d7b14..96354af0d7c6ebbf57c912a9a6445b82e0623ab9 100644 (file)
@@ -43,6 +43,11 @@ unreleased) version of Git, that is available from the 'master'
 branch of the `git.git` repository.
 Documentation for older releases are available here:
 
+* link:v2.2.0/git.html[documentation for release 2.2]
+
+* release notes for
+  link:RelNotes/2.2.0.txt[2.2].
+
 * link:v2.1.3/git.html[documentation for release 2.1.3]
 
 * release notes for
@@ -804,6 +809,14 @@ Git so take care if using Cogito etc.
        an explicit repository directory set via 'GIT_DIR' or on the
        command line.
 
+'GIT_COMMON_DIR'::
+       If this variable is set to a path, non-worktree files that are
+       normally in $GIT_DIR will be taken from this path
+       instead. Worktree-specific files such as HEAD or index are
+       taken from $GIT_DIR. See linkgit:gitrepository-layout[5] for
+       details. This variable has lower precedence than other path
+       variables such as GIT_INDEX_FILE, GIT_OBJECT_DIRECTORY...
+
 Git Commits
 ~~~~~~~~~~~
 'GIT_AUTHOR_NAME'::