pub struct ReplayRequest<'a> {Show 13 fields
pub context: &'a GitContext,
pub shadow: &'a Path,
pub object_directory: &'a Path,
pub worktree_root: &'a Path,
pub git_dir: &'a Path,
pub transaction_directory: &'a Path,
pub replay: u64,
pub base: Option<&'a str>,
pub empty_tree: &'a str,
pub current: &'a str,
pub prepared: &'a str,
pub signing_key: Option<&'a str>,
pub global_arguments: &'a [String],
}Expand description
What: One replay’s inputs: the Git context and directories, the transaction, the commit IDs, and the signing options. Why: A struct keeps the call site short; every field is named once.
In TS you’d write (pseudocode):
type ReplayRequest = { gitPath; shadowPath; objectDirectory; cwd; gitDir; directory; replay; base; emptyTree; current; prepared; signingKey; globalArgs };Fields§
§context: &'a GitContextReal Git executable and the variables every child receives.
shadow: &'a PathShadow repository, as --git-dir.
object_directory: &'a PathShadow object store, whose alternates reach the real objects.
worktree_root: &'a PathWorktree root, where Git reports conflicted paths from.
git_dir: &'a PathGit directory of the owning worktree, holding the capture store.
transaction_directory: &'a PathThis transaction’s directory, holding captured.json.
replay: u64Replay number, naming the private files.
base: Option<&'a str>Preparation base commit; None for an unborn branch.
empty_tree: &'a strEmpty tree of the repository’s object format, for an unborn base.
current: &'a strTarget that won.
prepared: &'a strPrepared commit.
signing_key: Option<&'a str>Key the invocation passed to -S; None signs with the configured key.
global_arguments: &'a [String]The caller’s kept global options, which may configure signing.
Auto Trait Implementations§
impl<'a> Freeze for ReplayRequest<'a>
impl<'a> RefUnwindSafe for ReplayRequest<'a>
impl<'a> Send for ReplayRequest<'a>
impl<'a> Sync for ReplayRequest<'a>
impl<'a> Unpin for ReplayRequest<'a>
impl<'a> UnsafeUnpin for ReplayRequest<'a>
impl<'a> UnwindSafe for ReplayRequest<'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
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> ⓘ
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> ⓘ
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