From 2e2cec29bd3b5625954e4a7c2928903471112eea Mon Sep 17 00:00:00 2001 From: Niels Keurentjes Date: Tue, 12 Apr 2016 13:44:26 +0200 Subject: [PATCH] Docs for tilde expansion. --- doc/05-repositories.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/05-repositories.md b/doc/05-repositories.md index 2889a1924..a395f2b4a 100644 --- a/doc/05-repositories.md +++ b/doc/05-repositories.md @@ -609,8 +609,8 @@ update to the latest version. ### Path In addition to the artifact repository, you can use the path one, which allows -you to depend on a relative directory. This can be especially useful when dealing -with monolith repositories. +you to depend on a local directory, either absolute or relative. This can be +especially useful when dealing with monolithic repositories. For instance, if you have the following directory structure in your repository: ``` @@ -667,9 +667,9 @@ Forcing mirroring can be useful when deploying or generating package from a mono } ``` - - -Instead of using a relative path, an absolute path can also be used. +If present on *nix systems leading tildes are expanded to the current user's home folder, which +can be handy when working on teams on the same packages. For example `~/git/mypackage` will +automatically load the mypackage clone from `/home//git/mypackage` for every developer. > **Note:** Repository paths can also contain wildcards like ``*`` and ``?``. > For details, see the [PHP glob function](http://php.net/glob).