pub struct CoordinatedForward {
pub real_git: PathBuf,
pub arguments: Vec<OsString>,
pub overlay: Vec<(OsString, OsString)>,
pub identity: WorktreeIdentity,
pub command: ResolvedCommand,
pub environment: Vec<(OsString, OsString)>,
pub timeout_ms: u64,
pub copy: Option<CopyFacts>,
}Expand description
What: Everything a coordinated forward needs, owned, so the planned action can carry it. Why: The plan decides that coordination is needed; the run performs it.
In TS you’d write (pseudocode):
type ForwardToRealGit = { realGit: string; args: string[]; overlay: [string, string][]; identity; command; environment; timeoutMs };Fields§
§real_git: PathBufReal Git executable.
arguments: Vec<OsString>Arguments Git receives, as the caller gave them.
overlay: Vec<(OsString, OsString)>Environment variables added to Git’s inherited environment.
identity: WorktreeIdentityRepository shape of the invocation.
command: ResolvedCommandThe command after alias expansion, which decides the coordination.
environment: Vec<(OsString, OsString)>The environment the invocation inherited, which may carry an ancestor’s lease.
timeout_ms: u64indexLock.unprovenOwnerTimeoutMs.
copy: Option<CopyFacts>The linked-worktree copy to settle around Git, when it applies to this invocation.
Trait Implementations§
Source§impl Clone for CoordinatedForward
impl Clone for CoordinatedForward
Source§impl Debug for CoordinatedForward
impl Debug for CoordinatedForward
impl Eq for CoordinatedForward
Source§impl PartialEq for CoordinatedForward
impl PartialEq for CoordinatedForward
impl StructuralPartialEq for CoordinatedForward
Auto Trait Implementations§
impl Freeze for CoordinatedForward
impl RefUnwindSafe for CoordinatedForward
impl Send for CoordinatedForward
impl Sync for CoordinatedForward
impl Unpin for CoordinatedForward
impl UnsafeUnpin for CoordinatedForward
impl UnwindSafe for CoordinatedForward
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