aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorPhilip Oakley <philipoakley@iee.org>2013-09-13 22:23:17 +0100
committerJunio C Hamano <gitster@pobox.com>2013-09-13 15:29:59 -0700
commit431260cc8dda69336ced159c39d10007c9584e58 (patch)
treebc9a5a201fdc1d92804f6c976c93bdc48216d04c /Documentation
parentb3e7d24ca19d841eb2c5c7fce7919ebb5d370a6f (diff)
downloadgit-431260cc8dda69336ced159c39d10007c9584e58.tar.gz
git-431260cc8dda69336ced159c39d10007c9584e58.tar.xz
doc: command line interface (cli) dot-repository dwimmery
The Git cli will accept dot '.' (period) as the relative path to the current repository. Explain this action. Signed-off-by: Philip Oakley <philipoakley@iee.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/gitcli.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt
index 9ac5088ac..167284231 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.
Here are the rules regarding the "flags" that you should follow when you are
scripting Git: