Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH V2 3/3] doc: command line interface (cli) dot-repository dwimmery

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:58:45

Philip Oakley [off-list ref] writes:
quoted hunk
The Git cli will accept dot '.' (period) as the relative path
to the current repository. Explain this action.

Signed-off-by: Philip Oakley <redacted>
---
 Documentation/gitcli.txt | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt
index 7d54b77..b065c0e 100644
--- a/Documentation/gitcli.txt
+++ b/Documentation/gitcli.txt
@@ -58,6 +58,10 @@ the paths in the index that match the pattern to be checked out to your
 working tree.  After running `git add hello.c; rm hello.c`, you will _not_
 see `hello.c` in your working tree with the former, but with the latter
 you will.
++
+Just as the filesystem '.' (period) refers to the current directory,
+using a '.' as a repository name in Git (a dot-repository) is a relative
+path for your current repository.
Looks good to me.  Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help