Skip to content

Commit 1a64e07

Browse files
szedergitster
authored andcommitted
Document that 'git -C ""' works and doesn't change directory
It's been behaving so since 6a536e2 (git: treat "git -C '<path>'" as a no-op when <path> is empty, 2015-03-06). Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b697d92 commit 1a64e07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ help ...`.
5656
Run as if git was started in '<path>' instead of the current working
5757
directory. When multiple `-C` options are given, each subsequent
5858
non-absolute `-C <path>` is interpreted relative to the preceding `-C
59-
<path>`.
59+
<path>`. If '<path>' is present but empty, e.g. `-C ""`, then the
60+
current working directory is left unchanged.
6061
+
6162
This option affects options that expect path name like `--git-dir` and
6263
`--work-tree` in that their interpretations of the path names would be

0 commit comments

Comments
 (0)