pub struct Branch {
pub name: String,
pub created_after_commit: Option<usize>,
}Expand description
A branch in the git graph.
name is the branch name. created_after_commit is the index into
GitGraph::commits of the commit that was HEAD on the parent branch when
this branch was created via branch <name>. It is None only for main,
which always exists from the start.
Fields§
§name: String§created_after_commit: Option<usize>The commit (by index) from which this branch was forked, or None
for main (the initial branch, which has no parent commit).
Trait Implementations§
impl Eq for Branch
impl StructuralPartialEq for Branch
Auto Trait Implementations§
impl Freeze for Branch
impl RefUnwindSafe for Branch
impl Send for Branch
impl Sync for Branch
impl Unpin for Branch
impl UnsafeUnpin for Branch
impl UnwindSafe for Branch
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