pub enum Wrote {
Created,
FastForwarded,
Unchanged,
}Expand description
What one import did to the name it wrote.
Three answers, because a caller reads this to find out what changed and the two that are not “the name is new” differ: a branch already at the commit the source has moved nothing, and reporting that as a fast-forward names an advance that did not happen.
Variants§
Created
The destination had no branch of that name.
FastForwarded
It had one, and the import moved it forward.
Unchanged
It had one, already at the commit the source has.
Trait Implementations§
impl Copy for Wrote
impl Eq for Wrote
impl StructuralPartialEq for Wrote
Auto Trait Implementations§
impl Freeze for Wrote
impl RefUnwindSafe for Wrote
impl Send for Wrote
impl Sync for Wrote
impl Unpin for Wrote
impl UnsafeUnpin for Wrote
impl UnwindSafe for Wrote
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.