~siborgium/src-tree

e98200e5285054e1c22d0ab13920df672371326d — Sergey Smirnykh 1 year, 2 months ago 3337dab
Show --target and checkout in README
1 files changed, 13 insertions(+), 4 deletions(-)

M README.md
M README.md => README.md +13 -4
@@ 11,7 11,7 @@ It allows to clone multiple repositories as described by configuration file, and
% src-tree clone config.yaml --root ./root
% mkdir root/build
% # populate root/build with dependencies
% src-tree link config.yaml --root ./root --builddir build
% src-tree link config.yaml --root ./root --builddir build --targetdir result
```

For a following configuration file


@@ 27,7 27,16 @@ repositories:
This would produce a following directory tree minus `xxx` and `zzz` contents.

```
./root/build
./root/xxx/build -> ./root/build
./root/zzz/build -> ./root/build
./root/result
./root/xxx/build -> ./root/result
./root/zzz/build -> ./root/result
```

Having applied some changes to the tree, you may want to synchronize it with the origin.
It can be done with

```sh
% src-tree checkout config.yaml
```

It would fetch changes from origin and checkout to them, optionally resetting any dirty files.