Struct git_graph::graph::GitGraph

source ·
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

tags: Vec<usize>

Indices of all tags in all_branches

head: HeadInfo

The current HEAD

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.