diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2019-06-29 11:24:57 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-01 20:42:49 +0300 |
commit | 1a64e07d235579ae0b3bc6d1f081a51a6e48a4d1 (patch) | |
tree | 0e182b11e9a72d5be417d7b7220d41a6ec293303 /Documentation/git.txt | |
parent | b697d92f56511e804b8ba20ccbe7bdc85dc66810 (diff) |
Document that 'git -C ""' works and doesn't change directory
It's been behaving so since 6a536e2076 (git: treat "git -C '<path>'"
as a no-op when <path> is empty, 2015-03-06).
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git.txt')
-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 |