pub struct PushGit {
pub real_git: PathBuf,
pub cwd: PathBuf,
pub environment: Vec<(OsString, OsString)>,
pub lfs_pre_push: Option<PathBuf>,
}Expand description
What:
The real Git a coordinator runs, where, and with which environment.
Why:
The incumbent’s coordination inherits the wrapper’s whole environment plus the child-environment overlay,
so the caller passes that complete environment in (environment_with_overlay)
and nothing is read from the process environment here.
In TS you’d write (pseudocode):
type PushGit = { gitPath: string; cwd: string; environment: NodeJS.ProcessEnv };Fields§
§real_git: PathBufAbsolute real Git executable.
cwd: PathBufDirectory the commit landed in.
environment: Vec<(OsString, OsString)>Complete environment every Git child receives: the invocation’s variables with the overlay applied.
lfs_pre_push: Option<PathBuf>The wrapper executable the Git LFS pre-push hook names, when the pushes of this coordinator must upload LFS objects first; queries and fetches never carry it.
Trait Implementations§
impl Eq for PushGit
impl StructuralPartialEq for PushGit
Auto Trait Implementations§
impl Freeze for PushGit
impl RefUnwindSafe for PushGit
impl Send for PushGit
impl Sync for PushGit
impl Unpin for PushGit
impl UnsafeUnpin for PushGit
impl UnwindSafe for PushGit
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