pub struct PrivatePatchInput<'a> {
pub context: &'a GitContext,
pub cwd: &'a Path,
pub index: &'a Path,
pub object_directory: Option<&'a Path>,
pub directory: &'a Path,
pub patch: &'a PolicyPatch,
pub expected_revision: &'a str,
pub ordinal: u32,
}Expand description
What: Inputs of one private patch application. Why: One object keeps the Git context, the private index and the patch separate at the call site.
In TS you’d write (pseudocode):
type PrivatePatchInput = { context; cwd; index; objectDirectory; directory; patch; expectedRevision; ordinal };Fields§
§context: &'a GitContextReal Git executable and the invocation’s overlay.
cwd: &'a PathEffective repository directory the patch is applied from.
index: &'a PathPrivate commit index receiving the correction.
object_directory: Option<&'a Path>Object store receiving written blobs; the real store when absent.
directory: &'a PathPrivate transaction directory holding the patch file.
patch: &'a PolicyPatchPatch to apply.
expected_revision: &'a strExact candidate blob revision the patch’s index line names as its base.
ordinal: u32Position of this patch in the pass, which names its patch file.
Auto Trait Implementations§
impl<'a> Freeze for PrivatePatchInput<'a>
impl<'a> RefUnwindSafe for PrivatePatchInput<'a>
impl<'a> Send for PrivatePatchInput<'a>
impl<'a> Sync for PrivatePatchInput<'a>
impl<'a> Unpin for PrivatePatchInput<'a>
impl<'a> UnsafeUnpin for PrivatePatchInput<'a>
impl<'a> UnwindSafe for PrivatePatchInput<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more