My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/apps/servers/octopus/supergit/src/raw/branch_walk.rs

19 lines
424 B

//! 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,
}