pub enum PushLease {
Force,
WithLease,
FastForward,
}Expand description
CAS lease policy for a default (current-branch → upstream) push.
Variants§
Force
Force — unconditional Any.
WithLease
--force-with-lease — require the remote tip to equal the local
remote-tracking ref (Match), or Missing when there is none.
Identical mechanism to the default safe push; semantically it is
the explicit, opt-in form that overwrites a fast-forward-failing
branch only if the remote hasn’t moved past what we last saw.
FastForward
Default safe push: Match the local remote-tracking ref, or Missing when absent (first push of this branch).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PushLease
impl RefUnwindSafe for PushLease
impl Send for PushLease
impl Sync for PushLease
impl Unpin for PushLease
impl UnsafeUnpin for PushLease
impl UnwindSafe for PushLease
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