Merge branch 'sg/git-C-empty-doc'
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 22:16:48 +0000 (15:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jul 2019 22:16:48 +0000 (15:16 -0700)
Doc update.

* sg/git-C-empty-doc:
Document that 'git -C ""' works and doesn't change directory

Documentation/git.txt
index e095514ace357b8e76ab0d9ea58b2a6c0e3dcd5b..9b82564d1aa9c04c4b0299c1a82c4ba45a2c3415 100644 (file)
@@ -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