pub struct FetchOutcome {
pub updates: Vec<RefUpdate>,
pub default_branch: Option<String>,
pub new_shallow: Vec<ObjectId>,
pub new_unshallow: Vec<ObjectId>,
}Expand description
The structured result of a fetch, ready for the embedder’s ref-store apply.
Fields§
§updates: Vec<RefUpdate>Per-ref resolved updates.
default_branch: Option<String>The remote’s default branch (from HEAD symref), if known.
new_shallow: Vec<ObjectId>New shallow boundary commits the server reported (shallow <oid>), already
applied to the local shallow file. The commits’ parents are intentionally
absent from the local object store after this fetch.
new_unshallow: Vec<ObjectId>Commits the server reported as no longer shallow (unshallow <oid>), i.e.
boundaries removed from the local shallow file because their history is
now complete. Populated by a deepen / --unshallow fetch.
Trait Implementations§
Source§impl Clone for FetchOutcome
impl Clone for FetchOutcome
Source§fn clone(&self) -> FetchOutcome
fn clone(&self) -> FetchOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FetchOutcome
impl Debug for FetchOutcome
Source§impl Default for FetchOutcome
impl Default for FetchOutcome
Source§fn default() -> FetchOutcome
fn default() -> FetchOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FetchOutcome
impl RefUnwindSafe for FetchOutcome
impl Send for FetchOutcome
impl Sync for FetchOutcome
impl Unpin for FetchOutcome
impl UnsafeUnpin for FetchOutcome
impl UnwindSafe for FetchOutcome
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