pub struct InvocationLayout {Show 13 fields
pub symbolic_head: SymbolicHead,
pub target_ref: String,
pub conclusion: Conclusion,
pub repository_root: PathBuf,
pub git_dir: PathBuf,
pub common_dir: PathBuf,
pub real_index_path: PathBuf,
pub object_directory: PathBuf,
pub registry_root: PathBuf,
pub ref_format: RefFormat,
pub object_format: String,
pub empty_tree_oid: String,
pub invoked_at: String,
}Expand description
What:
Facts about the repository one invocation selects,
recorded before the transaction publishes anything.
Why:
InvocationLayout in the incumbent:
every field except the preparation base.
In TS you’d write (pseudocode):
type InvocationLayout = Omit<InvocationCapture, 'base'>;Fields§
§symbolic_head: SymbolicHeadSymbolic HEAD target at invocation.
target_ref: StringRef the landing advances by compare-and-swap:
the branch,
or HEAD when detached.
conclusion: ConclusionCommit kind deciding moved-target behavior.
repository_root: PathBufCanonical worktree root.
git_dir: PathBufAbsolute Git directory of the owning worktree.
common_dir: PathBufAbsolute common Git directory.
real_index_path: PathBufAbsolute real index path,
honoring a caller-set GIT_INDEX_FILE.
object_directory: PathBufAbsolute real object directory named by the shadow’s alternates.
registry_root: PathBufAbsolute per-worktree transaction registry.
ref_format: RefFormatRef storage backend.
object_format: StringObject hash algorithm name.
empty_tree_oid: StringEmpty tree of the repository’s object format, standing in for an unborn base.
invoked_at: StringISO-8601 invocation start time.
Trait Implementations§
Source§impl Clone for InvocationLayout
impl Clone for InvocationLayout
Source§impl Debug for InvocationLayout
impl Debug for InvocationLayout
impl Eq for InvocationLayout
Source§impl PartialEq for InvocationLayout
impl PartialEq for InvocationLayout
impl StructuralPartialEq for InvocationLayout
Auto Trait Implementations§
impl Freeze for InvocationLayout
impl RefUnwindSafe for InvocationLayout
impl Send for InvocationLayout
impl Sync for InvocationLayout
impl Unpin for InvocationLayout
impl UnsafeUnpin for InvocationLayout
impl UnwindSafe for InvocationLayout
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