diff options
author | Teddy Wing | 2021-06-06 18:28:17 +0200 |
---|---|---|
committer | Teddy Wing | 2021-06-06 18:28:17 +0200 |
commit | 8c240d85a5720234f0093f876d9fdbfcc3f327e8 (patch) | |
tree | 19e8f9fca6356a5dce133e25f6e840c9082a7898 /src/github.rs | |
parent | 60493a4851ac0e306dd53bc08470721424694b63 (diff) | |
download | reflectub-8c240d85a5720234f0093f876d9fdbfcc3f327e8.tar.bz2 |
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.
Diffstat (limited to 'src/github.rs')
-rw-r--r-- | src/github.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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? } |