pub struct PostCommitHookRequest<'a> {
pub context: &'a GitContext,
pub worktree: &'a Path,
pub real_index: &'a Path,
pub landed_oid: &'a str,
pub plan: &'a HookDispatchPlan,
}Expand description
What: The inputs of one post-commit run. Why: Named fields keep the paths apart, and the plan carries the disabled events and the hook lock.
In TS you’d write (pseudocode):
{ gitPath, cwd, globalArgs, realIndexPath, landedOid, plan }Fields§
§context: &'a GitContextReal Git and the caller’s global options.
worktree: &'a PathOwning worktree root, where the hook runs.
real_index: &'a PathReal index native Git names in GIT_INDEX_FILE.
landed_oid: &'a strLanded commit whose author the hook sees.
plan: &'a HookDispatchPlanDispatch plan holding the disabled events and the hook lock.
Trait Implementations§
Source§impl<'a> Clone for PostCommitHookRequest<'a>
impl<'a> Clone for PostCommitHookRequest<'a>
impl<'a> Copy for PostCommitHookRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for PostCommitHookRequest<'a>
impl<'a> RefUnwindSafe for PostCommitHookRequest<'a>
impl<'a> Send for PostCommitHookRequest<'a>
impl<'a> Sync for PostCommitHookRequest<'a>
impl<'a> Unpin for PostCommitHookRequest<'a>
impl<'a> UnsafeUnpin for PostCommitHookRequest<'a>
impl<'a> UnwindSafe for PostCommitHookRequest<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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