pub struct PushRequest {
pub remote: Option<String>,
pub refspecs: Vec<String>,
pub tags: bool,
pub delete_refs: bool,
pub delete: Vec<String>,
pub force: ForceMode,
pub follow_tags: bool,
pub set_upstream: bool,
}Expand description
What the caller wants to push (remote override, refspecs, tags, deletions).
Fields§
§remote: Option<String>Explicit remote name from --remote or the first positional argument.
refspecs: Vec<String>Positional refspec strings (src, src:dst, :dst, +src:dst, …).
Push all local tags (--tags).
delete_refs: boolDelete the remote refs named in Self::refspecs instead of pushing them (--delete).
Every refspec must then be a plain ref name (no :); see
PushPlanError::DeleteNotPlainName.
delete: Vec<String>Additional remote refs to delete, planned together with Self::refspecs as when
Self::delete_refs is set.
force: ForceModeForce or force-with-lease mode from CLI flags.
Push annotated tags reachable from the commits being pushed (--follow-tags).
set_upstream: boolAfter a successful branch push, write branch.<name>.remote / .merge (-u).
Trait Implementations§
Source§impl Clone for PushRequest
impl Clone for PushRequest
Source§impl Debug for PushRequest
impl Debug for PushRequest
Source§impl Default for PushRequest
impl Default for PushRequest
impl Eq for PushRequest
Source§impl PartialEq for PushRequest
impl PartialEq for PushRequest
impl StructuralPartialEq for PushRequest
Auto Trait Implementations§
impl Freeze for PushRequest
impl RefUnwindSafe for PushRequest
impl Send for PushRequest
impl Sync for PushRequest
impl Unpin for PushRequest
impl UnsafeUnpin for PushRequest
impl UnwindSafe for PushRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.