Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-12 01:16:48 +0300
committerJunio C Hamano <gitster@pobox.com>2019-07-12 01:16:48 +0300
commitdf73cb38d942d2fb305a0fbfedd9a093ca386c83 (patch)
treef2bdcf1f070b01da359bec13c999ac6eb3359074
parentd5df41cec6603a45860a980cfc7b8cfcf3e44f7a (diff)
parent1a64e07d235579ae0b3bc6d1f081a51a6e48a4d1 (diff)
Merge branch 'sg/git-C-empty-doc'
Doc update. * sg/git-C-empty-doc: Document that 'git -C ""' works and doesn't change directory
-rw-r--r--Documentation/git.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index e095514ace..9b82564d1a 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -57,7 +57,8 @@ help ...`.
Run as if git was started in '<path>' instead of the current working
directory. When multiple `-C` options are given, each subsequent
non-absolute `-C <path>` is interpreted relative to the preceding `-C
- <path>`.
+ <path>`. If '<path>' is present but empty, e.g. `-C ""`, then the
+ current working directory is left unchanged.
+
This option affects options that expect path name like `--git-dir` and
`--work-tree` in that their interpretations of the path names would be