pub struct RefUpdateFlags {
pub no_deref: bool,
pub log_only: bool,
pub skip_oid_verification: bool,
}Expand description
Per-update flags (Git REF_NO_DEREF / REF_LOG_ONLY / REF_SKIP_OID_VERIFICATION
semantics).
Fields§
§no_deref: boolDo not dereference symbolic refs when computing reflog old/new oids.
log_only: boolAppend reflog only; do not change the ref value.
skip_oid_verification: boolStore the direct value without checking that the object exists (and, for a branch or
HEAD, that it is a commit).
For deliberately writing a dangling ref, such as a corrupt-repository fixture. Every other caller should leave this off so a lost race with a prune fails at the update instead of leaving a broken ref.
Trait Implementations§
Source§impl Clone for RefUpdateFlags
impl Clone for RefUpdateFlags
impl Copy for RefUpdateFlags
Source§impl Debug for RefUpdateFlags
impl Debug for RefUpdateFlags
Source§impl Default for RefUpdateFlags
impl Default for RefUpdateFlags
impl Eq for RefUpdateFlags
Source§impl PartialEq for RefUpdateFlags
impl PartialEq for RefUpdateFlags
impl StructuralPartialEq for RefUpdateFlags
Auto Trait Implementations§
impl Freeze for RefUpdateFlags
impl RefUnwindSafe for RefUpdateFlags
impl Send for RefUpdateFlags
impl Sync for RefUpdateFlags
impl Unpin for RefUpdateFlags
impl UnsafeUnpin for RefUpdateFlags
impl UnwindSafe for RefUpdateFlags
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
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.