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. Signed-off-by: Manlio Perillo <manlio.perillo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Manlio Perillo committed
Dec 13, 2012 at 18:57 UTC
75940a001acb0c09abea8ac71ed1568ab125c795
1 file changed
+1
Documentation/git.txt
+1
@@ -650,6 +650,7 @@ git so take care if using Cogito etc.
650
If the 'GIT_DIR' environment variable is set then it
651
specifies a path to use instead of the default `.git`
652
for the base of the repository.
653
+ The '--git-dir' command-line option also sets this value.
654
655
'GIT_WORK_TREE'::
656
Set the path to the working tree. The value will not be