Skip to content
Clone

refactor(repo): remove compare types (inlined)

zhenyi committed
parent c4de5b6 commit a346819 Browse files

1 file changed

+0 −21

Deleted lib/repo/features/compare/types.rs
@@ -1,21 +0,0 @@
1use serde::{Deserialize, Serialize};
2use utoipa::ToSchema;
3
4#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
5pub struct CompareView {
6 pub base: String,
7 pub head: String,
8 pub merge_base: Option<String>,
9 pub total_commits: i64,
10 pub ahead_by: i64,
11 pub behind_by: i64,
12 pub files: Vec<CompareFileDiff>,
13}
14
15#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
16pub struct CompareFileDiff {
17 pub path: String,
18 pub additions: i64,
19 pub deletions: i64,
20 pub status: String,
21}