summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2021-08-01 13:56:36 +0200
committerMatthias Beyer <mail@beyermatthias.de>2021-08-01 14:01:41 +0200
commit5c73b38803dd7a0817d5c1adb1bdb7016f18a7e5 (patch)
tree93dcbfa276af3f33ae827023d6af3d0a2228b9cc /src
parent4adc52f6b0d21a746437ee0b70f9d64ef2bd6417 (diff)
Move src/repository.rs to src/model/stat.rs
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src')
-rw-r--r--src/model/mod.rs1
-rw-r--r--src/model/stat.rs (renamed from src/repository.rs)13
2 files changed, 1 insertions, 13 deletions
diff --git a/src/model/mod.rs b/src/model/mod.rs
new file mode 100644
index 0000000..4f22af6
--- /dev/null
+++ b/src/model/mod.rs
@@ -0,0 +1 @@
+pub mod stat;
diff --git a/src/repository.rs b/src/model/stat.rs
index 689bb39..29be7d5 100644
--- a/src/repository.rs
+++ b/src/model/stat.rs
@@ -12,7 +12,6 @@ use either::Either;
use git2::Tree;
use crate::state::RepoState;
-
#[derive(Clone)]
pub struct RepositoryStat {
pub branches: Vec<String>,
@@ -54,15 +53,3 @@ pub async fn get_repository_stat(_repo_name: &str, repo_state: Arc<Mutex<RepoSta
Ok(Return::new(stat))
}
-#[derive(Clone, Debug, serde::Serialize, getset::Getters)]
-pub struct Blob {
- #[getset(get = "pub")]
- size: usize,
-
- #[getset(get = "pub")]
- is_binary: bool,
-
- #[getset(get = "pub")]
- content: String,
-}
-