From 623954d19fdf0dca47db319e5c88ee561aa8d25c Mon Sep 17 00:00:00 2001 From: Katharina Fey Date: Tue, 27 Oct 2020 15:15:23 +0100 Subject: Adding raw git repository utilities --- supergit/src/raw/branch_walk.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'supergit/src/raw/branch_walk.rs') 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, + /// Map of commit IDs to commit metadata + meta: BTreeMap, +} + +pub struct CommitNode { + id: String, + author: String, + commiter: String, + message: String, + touches: BTreeSet, + time: u64, +} -- cgit v1.2.3