pub struct GitContext {
pub real_git: PathBuf,
pub overlay: Vec<(OsString, OsString)>,
pub global_prefix: Vec<OsString>,
}Expand description
What: The real Git executable and the variables every Git child receives. Why: Transaction code is handed this once and starts every Git through it.
In TS you’d write (pseudocode):
type GitContext = { gitPath: string; overlay: [string, string][] };Fields§
§real_git: PathBufAbsolute real Git executable.
overlay: Vec<(OsString, OsString)>Variables added to every child: lock PID injection and the forward-target marker.
global_prefix: Vec<OsString>Global options of the invocation,
kept before every subcommand (-C,
--git-dir,
-c).
Trait Implementations§
Source§impl Clone for GitContext
impl Clone for GitContext
Source§impl Debug for GitContext
impl Debug for GitContext
impl Eq for GitContext
Source§impl PartialEq for GitContext
impl PartialEq for GitContext
impl StructuralPartialEq for GitContext
Auto Trait Implementations§
impl Freeze for GitContext
impl RefUnwindSafe for GitContext
impl Send for GitContext
impl Sync for GitContext
impl Unpin for GitContext
impl UnsafeUnpin for GitContext
impl UnwindSafe for GitContext
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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