pub struct LandedTransaction {
pub landed_oid: String,
pub branch: String,
pub cwd: PathBuf,
pub repository_root: PathBuf,
pub directory: PathBuf,
pub shadow: PathBuf,
pub git_dir: PathBuf,
pub registry_root: PathBuf,
pub real_index: PathBuf,
pub added_paths: Vec<AddedPath>,
pub worktree_records: Vec<AddedPath>,
}Expand description
What:
What a landing reports about the commit it made, and the transaction paths that landing left behind.
Why:
The landing lane fills this from its outcome; this lane only reads it.
worktree_records holds the selected corrections followed by the hook changes, as the incumbent orders them.
In TS you’d write (pseudocode):
type LandedTransaction = { oid; branch; cwd; repositoryRoot; directory; shadowPath; gitDir; registryRoot; realIndexPath; addedPaths; worktreeRecords };Fields§
§landed_oid: StringLanded commit object name.
branch: StringBranch the commit landed on, named in diagnostics.
cwd: PathBufEffective repository directory the Git commands of the transaction ran in.
repository_root: PathBufCanonical worktree root, where maintenance and post-commit run.
directory: PathBufDurable transaction directory under the registry.
shadow: PathBufShadow repository whose object store holds originals that never landed.
git_dir: PathBufReal Git directory holding the capture store.
registry_root: PathBufTransaction registry root.
real_index: PathBufReal index native Git names in GIT_INDEX_FILE for post-commit.
added_paths: Vec<AddedPath>Paths a policy added, with their worktree completion records.
worktree_records: Vec<AddedPath>Selected corrections, then hook changes, whose worktree copies the landing completes.
Trait Implementations§
Source§impl Clone for LandedTransaction
impl Clone for LandedTransaction
Source§impl Debug for LandedTransaction
impl Debug for LandedTransaction
impl Eq for LandedTransaction
Source§impl PartialEq for LandedTransaction
impl PartialEq for LandedTransaction
impl StructuralPartialEq for LandedTransaction
Auto Trait Implementations§
impl Freeze for LandedTransaction
impl RefUnwindSafe for LandedTransaction
impl Send for LandedTransaction
impl Sync for LandedTransaction
impl Unpin for LandedTransaction
impl UnsafeUnpin for LandedTransaction
impl UnwindSafe for LandedTransaction
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> 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
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> ⓘ
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