aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-11 15:16:48 -0700
committerJunio C Hamano <gitster@pobox.com>2019-07-11 15:16:48 -0700
commitdf73cb38d942d2fb305a0fbfedd9a093ca386c83 (patch)
treef2bdcf1f070b01da359bec13c999ac6eb3359074 /Documentation/git.txt
parentd5df41cec6603a45860a980cfc7b8cfcf3e44f7a (diff)
parent1a64e07d235579ae0b3bc6d1f081a51a6e48a4d1 (diff)
downloadgit-df73cb38d942d2fb305a0fbfedd9a093ca386c83.tar.gz
Merge branch 'sg/git-C-empty-doc'
Doc update. * sg/git-C-empty-doc: Document that 'git -C ""' works and doesn't change directory
Diffstat (limited to 'Documentation/git.txt')
-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