pub struct FetchOutcome {
pub ref_updates: Vec<FetchRefUpdate>,
pub pruned: Vec<PrunedRef>,
pub head_symref: Option<String>,
pub wrote_fetch_head: bool,
pub accepted_promisor_remotes: Vec<PromisorRemoteAdvertisement>,
pub stored_promisor_fields: Vec<PromisorRemoteFieldUpdate>,
pub pack_generation_progress: Option<PackGenerationProgress>,
}Expand description
The structured result of a fetch.
Fields§
§ref_updates: Vec<FetchRefUpdate>The ref updates that were planned (and applied unless dry_run), in the
order they were resolved. Includes auto-followed tags; entries without a
dst are fetch-only (e.g. a bare HEAD fetch) and update no local ref.
pruned: Vec<PrunedRef>Remote-tracking refs pruned (empty unless prune and the remote is a
configured remote). Empty on dry_run.
head_symref: Option<String>The remote’s advertised HEAD symref target (e.g. refs/heads/main),
when the remote advertised one. Useful for resolving the default branch.
wrote_fetch_head: boolWhether FETCH_HEAD was written.
accepted_promisor_remotes: Vec<PromisorRemoteAdvertisement>Promisor remotes accepted from the server, in advertised priority order.
stored_promisor_fields: Vec<PromisorRemoteFieldUpdate>Accepted advertised fields persisted into existing client remotes.
pack_generation_progress: Option<PackGenerationProgress>Equal-work counts for the object transfer, when this transport exposes
truthful native counts. None means no objects moved or the transport
did not provide trustworthy progress metadata.
Trait Implementations§
Source§impl Clone for FetchOutcome
impl Clone for FetchOutcome
Source§fn clone(&self) -> FetchOutcome
fn clone(&self) -> FetchOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more