pub struct GitGraph {
pub repository: Repository,
pub commits: Vec<CommitInfo>,
pub indices: HashMap<Oid, usize>,
pub all_branches: Vec<BranchInfo>,
pub branches: Vec<usize>,
pub tags: Vec<usize>,
pub head: HeadInfo,
}Expand description
Represents a git history graph.
Fields
repository: Repositorycommits: Vec<CommitInfo>indices: HashMap<Oid, usize>Mapping from commit id to index in commits
all_branches: Vec<BranchInfo>All detected branches and tags, including merged and deleted
branches: Vec<usize>Indices of all real (still existing) branches in all_branches
Indices of all tags in all_branches
head: HeadInfoThe current HEAD
Implementations
Auto Trait Implementations
impl RefUnwindSafe for GitGraph
impl Send for GitGraph
impl !Sync for GitGraph
impl Unpin for GitGraph
impl UnwindSafe for GitGraph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more