Skip to contentSkip to conversation

git.txt: add missing info about --git-dir command-line option

PATCH In review Manlio Perillo 2 participants 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 git.txt: add missing info about --git-dir command-line option

Unlike other environment variables (e.g. GIT_WORK_TREE, GIT_NAMESPACE),
the Documentation/git.txt file did not mention that the GIT_DIR environment variable can also be set using the --git-dir command line option.

---
 Documentation/git.txt | 1 +
 1 file changed, 1 insertion(+)
Documentation/git.txt +1 -0
index e643683..60db292 100644
@@ -650,6 +650,7 @@ git so take care if using Cogito etc.
 	If the 'GIT_DIR' environment variable is set then it
 	specifies a path to use instead of the default `.git`
 	for the base of the repository.
+	The '--git-dir' command-line option also sets this value.
 
 'GIT_WORK_TREE'::
 	Set the path to the working tree.  The value will not be
Signature · 1 line
1.8.1.rc1.19.g2021cc5.dirty