pub struct PushReportRef {
pub src: Option<String>,
pub dst: String,
pub old_id: ObjectId,
pub new_id: ObjectId,
pub forced: bool,
pub status: PushRefStatus,
pub reports: Vec<ProcReceiveReport>,
}Expand description
One ref’s line in git’s push status report. Carries everything
print_one_push_report needs: the source (“from”) ref, the destination
(“to”) ref, the old/new object ids, whether the update was forced, whether it
is a deletion, and the classified PushRefStatus.
Fields§
§src: Option<String>The local source ref name (git’s ref->peer_ref->name), e.g.
refs/heads/main. None for a deletion (git prints :dst).
dst: StringThe destination ref name (git’s ref->name), e.g. refs/heads/main.
old_id: ObjectIdThe remote’s old object id for dst (zero for a create).
new_id: ObjectIdThe object id installed at dst (zero for a delete).
forced: boolTrue when the update overwrote a non-fast-forward (git’s forced_update).
status: PushRefStatusThe classified outcome.
reports: Vec<ProcReceiveReport>Proc-receive report-status-v2 rewrites for this ref (one line per report).
Implementations§
Source§impl PushReportRef
impl PushReportRef
Sourcepub fn tracking_commands(&self) -> Vec<ReceivePackCommand>
pub fn tracking_commands(&self) -> Vec<ReceivePackCommand>
Receive-pack commands for remote-tracking updates, honouring proc-receive rewrites when present.
Sourcepub fn is_deletion(&self) -> bool
pub fn is_deletion(&self) -> bool
Whether this ref is a deletion (new id is the zero oid).
Trait Implementations§
Source§impl Clone for PushReportRef
impl Clone for PushReportRef
Source§fn clone(&self) -> PushReportRef
fn clone(&self) -> PushReportRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more