pub enum RefState {
GitBehind,
LogUnbackable,
GitOnly,
Unreadable,
}Expand description
How one ref disagrees between the log and a bare repo.
Variants§
GitBehind
The log names a commit the repo has but is not pointing at. Git is the follower, so this is repaired by moving git.
LogUnbackable
The log names a commit the repo does not have and cannot get — a refused push’s objects go out with the quarantine. Repaired by the log giving way, through a compensating op.
GitOnly
Git holds a ref the log has never seen. Reported only: adopting it
would launder an out-of-band update-ref into the signed log.
Unreadable
The comparison could not be made at all.
Implementations§
Trait Implementations§
impl Copy for RefState
impl Eq for RefState
impl StructuralPartialEq for RefState
Auto Trait Implementations§
impl Freeze for RefState
impl RefUnwindSafe for RefState
impl Send for RefState
impl Sync for RefState
impl Unpin for RefState
impl UnsafeUnpin for RefState
impl UnwindSafe for RefState
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