pub struct NoChangeInput<'a> {
pub invocation: &'a CommitInvocation<'a>,
pub workspace: &'a mut CommitWorkspace,
pub capture: &'a InvocationCapture,
pub mode: TransactionMode,
pub eligible: bool,
pub intended_tree: &'a str,
pub committed_paths: &'a [String],
pub selected_worktree_paths: &'a [AddedPath],
pub events: &'a [PolicyEvent],
pub changed_passes: u64,
pub changed_paths: &'a [String],
pub index_lock_timeout_ms: u64,
}Expand description
What: What the no-change decision reads. Why: The decision compares the intended tree with the recorded base’s tree.
In TS you’d write (pseudocode):
{ workspace, capture, gitPath, cwd, repositoryRoot, mode, eligible, intendedTreeOid, committedPaths, ... }Fields§
§invocation: &'a CommitInvocation<'a>The invocation’s fixed facts.
workspace: &'a mut CommitWorkspaceThe published workspace.
capture: &'a InvocationCaptureThe invocation capture.
mode: TransactionModeThe original selection mode.
eligible: boolFalse for an explicit allow-empty, an amend and a sequencer conclusion.
intended_tree: &'a strThe completely settled private tree.
committed_paths: &'a [String]The selection including policy additions.
selected_worktree_paths: &'a [AddedPath]Selected corrected files that match their initial bytes.
events: &'a [PolicyEvent]The settled pass’s events.
changed_passes: u64How many passes changed content.
changed_paths: &'a [String]The corrected paths, for the summary.
index_lock_timeout_ms: u64The backoff budget for a foreign index.lock.
Auto Trait Implementations§
impl<'a> !UnwindSafe for NoChangeInput<'a>
impl<'a> Freeze for NoChangeInput<'a>
impl<'a> RefUnwindSafe for NoChangeInput<'a>
impl<'a> Send for NoChangeInput<'a>
impl<'a> Sync for NoChangeInput<'a>
impl<'a> Unpin for NoChangeInput<'a>
impl<'a> UnsafeUnpin for NoChangeInput<'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
Mutably borrows from an owned value. Read more
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