aboutsummaryrefslogtreecommitdiff
path: root/supergit/src/raw/branch_walk.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2020-10-27 15:15:23 +0100
committerKatharina Fey <kookie@spacekookie.de>2020-10-27 15:15:23 +0100
commit623954d19fdf0dca47db319e5c88ee561aa8d25c (patch)
tree11484edce6ecdff5f43f9533ede17aa56d54d087 /supergit/src/raw/branch_walk.rs
parentaadac179feea5bcdab8e27683be376028ac4df9c (diff)
Adding raw git repository utilitiesHEADmaster
Diffstat (limited to 'supergit/src/raw/branch_walk.rs')
-rw-r--r--supergit/src/raw/branch_walk.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/supergit/src/raw/branch_walk.rs b/supergit/src/raw/branch_walk.rs
index dfc7485..d4232c4 100644
--- a/supergit/src/raw/branch_walk.rs
+++ b/supergit/src/raw/branch_walk.rs
@@ -1 +1,19 @@
//! Walk along a branch parsing commit metadata
+
+use std::collections::{BTreeMap, BTreeSet};
+
+pub struct CommitHistory {
+ /// The correct order of commit IDs
+ order: Vec<String>,
+ /// Map of commit IDs to commit metadata
+ meta: BTreeMap<String, CommitNode>,
+}
+
+pub struct CommitNode {
+ id: String,
+ author: String,
+ commiter: String,
+ message: String,
+ touches: BTreeSet<String>,
+ time: u64,
+}