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: Repository§commits: 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 Freeze for GitGraph
impl RefUnwindSafe for GitGraph
impl Send for GitGraph
impl !Sync for GitGraph
impl Unpin for GitGraph
impl UnwindSafe for GitGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more