-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #248 from gunechristensen/main
Add support for multiple symbolic links per repo
- Loading branch information
Showing
6 changed files
with
281 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Using multiple links | ||
|
||
This feature can be used to create as many symbolic links as you need from one repository. | ||
|
||
## The syntax | ||
|
||
Let's say we have a simple project structure. | ||
|
||
|- include | ||
|- src | ||
|- docs | ||
|
||
```yaml | ||
location: .gitman | ||
|
||
sources: | ||
- repo: <URL of my_dependency repository> | ||
name: my_dependency | ||
rev: v1.0.3 | ||
links: | ||
- source: include | ||
target: vendor/partial_repo | ||
- target: vendor/full_repo | ||
``` | ||
|
||
This will result in the following symbolic links: | ||
- `<root>/vendor/partial_repo` -> `<root>/.gitman/my_dependency/include` | ||
- `<root>/vendor/full_repo` -> `<root>/.gitman/my_dependency` | ||
|
||
## Alternative syntax | ||
|
||
```yaml | ||
location: vendor | ||
|
||
sources: | ||
- repo: <URL of my_dependency repository> | ||
name: my_dependency | ||
rev: v1.0.3 | ||
links: | ||
- { source: src, target: partial_repo } | ||
- { target: full_repo } | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.