Peru a repository synchronizer¶
Some projects upstream bind
together lot of files which might not be of interest, but still the
convenience of a git pull
to get latest updates, makes you to download the whole
repository for just a bunch of files or folders.
For example, this website uses Pelican to generate the webpages out of markdown files. Pelican does have a rich set of plugins but all of them are in the same folder in the git checkout
.
Here, is where peru
comes in to play. Peru (hosted at https://github.com/buildinspace/peru) comes handy at this task.
You can install peru
from pipsi
:
1 |
|
And will provide you a command-line tool that uses a yaml file for definition of repositories, like the one I do use here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
In this way, peru sync
will download from the provided repositories the specified folder into the destination indicated, allowing you to integrate “other
repositories files” in your own workflow.
For example, if you want to use citellus repository at one specific point in time, to be integrated in your code, you could use:
1 2 3 4 5 6 7 |
|
This will checkout citellus repository at one specific point in time and merge in your current folder.
Enjoy!
Pablo
Comments