summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-07-11 15:16:48 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-07-11 15:16:48 -0700
commitdf73cb38d942d2fb305a0fbfedd9a093ca386c83 (patch)
treef2bdcf1f070b01da359bec13c999ac6eb3359074
parentMerge branch 'jt/t5551-test-chunked' (diff)
parentDocument that 'git -C ""' works and doesn't change directory (diff)
downloadtgif-df73cb38d942d2fb305a0fbfedd9a093ca386c83.tar.xz
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