diff options
| author | Max Audron <audron@cocaine.farm> | 2022-06-07 12:28:18 +0200 |
|---|---|---|
| committer | Maximilian Manz <maximilian.manz@de.clara.net> | 2022-06-20 11:33:04 +0200 |
| commit | ae13cbecdbeca984e0d389732356c2785eab66d9 (patch) | |
| tree | ccd76a92e16d47d23530b87ecdf21b57e40917ef /src/sync | |
| parent | fix crash while walking non existing dir (diff) | |
implement cloning of new repos
Diffstat (limited to 'src/sync')
| -rw-r--r-- | src/sync/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sync/mod.rs b/src/sync/mod.rs new file mode 100644 index 0000000..2edc04c --- /dev/null +++ b/src/sync/mod.rs @@ -0,0 +1,12 @@ +use gtree::local::Repos; + +impl crate::GTree { + pub async fn sync(&self, repos: Repos) { + for mut repo in repos { + match repo.sync() { + Ok(u) => println!("{}", u), + Err(u) => println!("{}", u), + }; + } + } +} |
