Skip to content

Commit df73cb3

Browse files
committed
Merge branch 'sg/git-C-empty-doc'
Doc update. * sg/git-C-empty-doc: Document that 'git -C ""' works and doesn't change directory
2 parents d5df41c + 1a64e07 commit df73cb3

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
@@ -57,7 +57,8 @@ help ...`.
5757
Run as if git was started in '<path>' instead of the current working
5858
directory. When multiple `-C` options are given, each subsequent
5959
non-absolute `-C <path>` is interpreted relative to the preceding `-C
60-
<path>`.
60+
<path>`. If '<path>' is present but empty, e.g. `-C ""`, then the
61+
current working directory is left unchanged.
6162
+
6263
This option affects options that expect path name like `--git-dir` and
6364
`--work-tree` in that their interpretations of the path names would be

0 commit comments

Comments
 (0)