Skip to main content

PushReportRequest

Struct PushReportRequest 

Source
pub struct PushReportRequest<'a> {
Show 13 fields pub git_dir: &'a Path, pub common_git_dir: &'a Path, pub format: ObjectFormat, pub remote_git_dir: &'a Path, pub remote_common_git_dir: &'a Path, pub refspecs: &'a [String], pub force: bool, pub atomic: bool, pub dry_run: bool, pub force_with_lease: &'a [(String, Option<ObjectId>)], pub force_with_lease_default: bool, pub force_if_includes: bool, pub receive_config_overrides: &'a [(String, String)],
}
Expand description

Fully resolved inputs for a status-reporting push to a local repository.

Fields§

§git_dir: &'a Path

Local repository $GIT_DIR.

§common_git_dir: &'a Path

Local repository common $GIT_DIR, used for object access.

§format: ObjectFormat

Local repository object format.

§remote_git_dir: &'a Path

The remote repository’s $GIT_DIR.

§remote_common_git_dir: &'a Path

The remote repository’s common $GIT_DIR.

§refspecs: &'a [String]

Refspecs requested by the caller (already URL/repo resolved).

§force: bool

Force every update (the --force flag).

§atomic: bool

--atomic: send nothing if any ref would be rejected.

§dry_run: bool

--dry-run: classify and report, but do not send or update.

§force_with_lease: &'a [(String, Option<ObjectId>)]

Per-ref --force-with-lease expectations: (dst, expected_old). An expected_old of None means “the remote ref must not exist”.

§force_with_lease_default: bool

--force-with-lease with no per-ref value: lease every pushed ref against its remote-tracking ref (git’s implicit cas). The expected value per dst is supplied via Self::force_with_lease; this flag only governs whether a lease was requested at all (used for the “no actual ref” diagnostics).

§force_if_includes: bool

--force-if-includes: for tracking-based leases, reject when the current remote tip is not included in the local branch’s reflog/history.

§receive_config_overrides: &'a [(String, String)]

Receive-pack-side config values supplied by the invoked receive-pack command, e.g. --receive-pack="git -c receive.denyDeletes=false receive-pack".

Auto Trait Implementations§

§

impl<'a> Freeze for PushReportRequest<'a>

§

impl<'a> RefUnwindSafe for PushReportRequest<'a>

§

impl<'a> Send for PushReportRequest<'a>

§

impl<'a> Sync for PushReportRequest<'a>

§

impl<'a> Unpin for PushReportRequest<'a>

§

impl<'a> UnsafeUnpin for PushReportRequest<'a>

§

impl<'a> UnwindSafe for PushReportRequest<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.