pub enum Action {
NoChange,
SkipToRefUpdate,
MustNegotiate {
remote_ref_target_known: Vec<bool>,
},
}
Available on crate feature
fetch
only.Expand description
Determines what should be done after preparing the commit-graph for negotiation.
Variants§
NoChange
None of the remote refs moved compared to our last recorded state (via tracking refs), so there is nothing to do at all, not even a ref update.
SkipToRefUpdate
Don’t negotiate, don’t fetch the pack, skip right to updating the references.
This happens if we already have all local objects even though the server seems to have changed.
MustNegotiate
We can’t know for sure if fetching is not needed, so we go ahead and negotiate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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