pub enum Head {
Commit(GitOid),
WorkingTree,
}Expand description
The far end of the comparison.
Exhaustive rather than Option<GitOid>: “against the working tree” is
a statement about now, and spelling it as an absent commit invites the
caller to read it as “against nothing”.
Variants§
Trait Implementations§
impl Copy for Head
impl Eq for Head
impl StructuralPartialEq for Head
Auto Trait Implementations§
impl Freeze for Head
impl RefUnwindSafe for Head
impl Send for Head
impl Sync for Head
impl Unpin for Head
impl UnsafeUnpin for Head
impl UnwindSafe for Head
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