diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-29 12:38:13 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-29 12:38:13 -0700 |
commit | bcb30d718a1bd2d3c6615d48e80816d1b50ee18f (patch) | |
tree | 77f68757c56b5b71ab5f3f5c6e47e41e58113464 | |
parent | Merge branch 'sg/ci-brew-gcc-workaround' into maint (diff) | |
parent | Document that 'git -C ""' works and doesn't change directory (diff) | |
download | tgif-bcb30d718a1bd2d3c6615d48e80816d1b50ee18f.tar.xz |
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.txt | 3 |
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 |