pub struct ReflogEntry {
pub old: GitHash,
pub new: GitHash,
pub name: String,
pub email: String,
pub timestamp: i64,
pub tz_offset: String,
pub message: String,
}Expand description
One reflog line: a single movement of a ref from old to new.
Fields§
§old: GitHashThe ref’s value before the movement (all-zero for the very first write).
new: GitHashThe ref’s value after the movement.
name: StringName of the committer who performed the movement.
email: StringEmail of the committer who performed the movement.
timestamp: i64Unix timestamp (seconds since epoch) of the movement.
tz_offset: StringTimezone offset as recorded (e.g. +0800), kept verbatim.
message: StringThe operation message (e.g. commit: x, reset: moving to HEAD~1).
Trait Implementations§
Source§impl Clone for ReflogEntry
impl Clone for ReflogEntry
Source§fn clone(&self) -> ReflogEntry
fn clone(&self) -> ReflogEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReflogEntry
impl Debug for ReflogEntry
impl Eq for ReflogEntry
Source§impl PartialEq for ReflogEntry
impl PartialEq for ReflogEntry
Source§fn eq(&self, other: &ReflogEntry) -> bool
fn eq(&self, other: &ReflogEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReflogEntry
Auto Trait Implementations§
impl Freeze for ReflogEntry
impl RefUnwindSafe for ReflogEntry
impl Send for ReflogEntry
impl Sync for ReflogEntry
impl Unpin for ReflogEntry
impl UnsafeUnpin for ReflogEntry
impl UnwindSafe for ReflogEntry
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