diff options
| author | Loïc Hoguin <[email protected]> | 2015-10-22 14:24:32 +0200 | 
|---|---|---|
| committer | Loïc Hoguin <[email protected]> | 2015-10-22 14:24:32 +0200 | 
| commit | 312f9c646ed83f6bf5bccc237e7903f2705a8c08 (patch) | |
| tree | 9faf45e967bfd24ec7a6beeee6ea658e9199af84 /doc/src | |
| parent | d07357f52ad8a0b67aef6d95506bb2df0a068ad3 (diff) | |
| download | erlang.mk-312f9c646ed83f6bf5bccc237e7903f2705a8c08.tar.gz erlang.mk-312f9c646ed83f6bf5bccc237e7903f2705a8c08.tar.bz2 erlang.mk-312f9c646ed83f6bf5bccc237e7903f2705a8c08.zip | |
Add git-submodule fetch method
Initially submitted by Daniel White.
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/guide/deps.asciidoc | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/doc/src/guide/deps.asciidoc b/doc/src/guide/deps.asciidoc index 882a70d..9335439 100644 --- a/doc/src/guide/deps.asciidoc +++ b/doc/src/guide/deps.asciidoc @@ -162,6 +162,7 @@ The following table lists all existing methods:  |===  | Name           | Format          | Description  | git            | git repo commit | Clone the Git repository and checkout the given version +| git-submodule  | git-submodule   | Initialize and update the Git submodule  | hg             | hg repo commit  | Clone the Mercurial repository and update to the given version  | svn            | svn repo        | Checkout the given SVN repository  | cp             | cp path/to/repo | Recursively copy a local directory @@ -184,6 +185,13 @@ Or to fetch Ehsa tag 4.0.3 from Mercurial:  [source,make]  dep_ehsa = hg https://bitbucket.org/a12n/ehsa 4.0.3 +Git also comes with a concept of submodules. Erlang.mk can +automatically initializes and updates submodules for dependencies, +as long as they were added beforehand using `git submodule add`: + +[source,make] +dep_cowboy = git-submodule +  The `svn` method only has a repository value, but that's  simply because the SVN repository URL can also contain  the path and commit. | 
