aboutsummaryrefslogtreecommitdiff
path: root/supergit/src/raw/branch_walk.rs
blob: d4232c48656084b47857e9eab15c89ca6effe260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
}