git-stratum 0.5.0

High(er) level repository for mining git repositories, this library abstracts git2-rs for efficient processing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use lru::LruCache;
use std::rc::Rc;

pub mod actor;
pub mod commit;
pub mod mfile;

pub(crate) type RcDiff<'repo> = Rc<git2::Diff<'repo>>;
pub(crate) type RcStat = Rc<git2::DiffStats>;
pub(crate) type RcPatch<'commit> = Rc<git2::Patch<'commit>>;

pub(crate) type CachedDiff<'repo> = LruCache<u8, RcDiff<'repo>>;
pub(crate) type CachedStat = LruCache<u8, RcStat>;
pub(crate) type CachedPatch<'commit> = LruCache<u8, Option<RcPatch<'commit>>>;