From 8c240d85a5720234f0093f876d9fdbfcc3f327e8 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 6 Jun 2021 18:28:17 +0200 Subject: Provide an option to skip repos larger than a given size Allows a maximum repo size to be given as a command line argument. Repos larger than this will not be mirrored. This gives us a way to save server space by avoiding gigantic repositories. --- src/github.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/github.rs') diff --git a/src/github.rs b/src/github.rs index 4624482..ec1e869 100644 --- a/src/github.rs +++ b/src/github.rs @@ -28,6 +28,7 @@ pub struct Repo { pub fork: bool, pub git_url: String, pub default_branch: String, + pub size: u64, pub updated_at: String, // TODO: Maybe parse to date? } -- cgit v1.2.3