From e30713b84bc9e66f7a8e8d2f51e953472cac28e4 Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Mon, 22 Jun 2020 06:23:04 +0200 Subject: Committing all the libgit2 progress before throwing it away I don't think libgit2 is the way forward to make any of this work. There's so much work involved in parsing the git k-v store, and the library itself is essentially of zero help for most of the heavy lifting. --- src/types/mod.rs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/types/mod.rs (limited to 'src/types/mod.rs') diff --git a/src/types/mod.rs b/src/types/mod.rs deleted file mode 100644 index d764b84..0000000 --- a/src/types/mod.rs +++ /dev/null @@ -1,30 +0,0 @@ -//! Octopus data types - -/// A simple overview of a repository -/// -/// This type can be generated by the octopus Repository state wrapper -pub(crate) struct RepoData { - pub owner: String, - pub name: String, - pub tagline: String, - pub num_commit: usize, - pub num_branch: usize, - pub num_tag: usize, - pub num_contributor: usize, - pub size: String, -} - -/// Data about an individual commit -pub(crate) struct CommitData { - pub hash: String, - pub message: String, - pub author: String, - pub date: String, - pub diff: (usize, usize), -} - -/// Data about a branch -pub(crate) struct BranchData { - pub name: String, - pub last_commit: CommitData, -} -- cgit v1.2.3