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-29 22:38:13 +0300
committerJunio C Hamano <gitster@pobox.com>2019-07-29 22:38:13 +0300
commitbcb30d718a1bd2d3c6615d48e80816d1b50ee18f (patch)
tree77f68757c56b5b71ab5f3f5c6e47e41e58113464
parent3846f5c325242efcfef5aa356d315802051caf5a (diff)
parent1a64e07d235579ae0b3bc6d1f081a51a6e48a4d1 (diff)
Merge branch 'sg/git-C-empty-doc' into maint
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 6ddc1e2ca6..81f7ecd52c 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -56,7 +56,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